Hello again, I'm back with more DDT-Custom Control questions. Actually, I have only one:
Why doesn't it paint?! Here's the setup:
The control won't paint anything except the background color (white). The control sends
& receives messages, responds to events and executes functions but no painting! For example,
if I right-click on the control area, it sends the SHOW_PROPERTIES_PAGE message, telling me
that the user wants to see the Properties page. But when I call the "ShowPropertiesPage()"
function the properties page doesn't show up!
Spy++ shows that the control is created, has a hWnd, a Thread ID, a parent hWnd and as I
mentioned processes events & messages OK. The control window has the WS_GROUP, WS_VISIBLE,
WS_TABSTOP and %WS_CHILD attributes, nothing unnusual there.
Here's the DDT control-creation line I'm using:
The control itself handles all painting issues and has it's own window message procedure,
so there's very little for the host app to do. So I'm puzzled (certainly not the first time
)
as to why there's no painting.
Any ideas on what might be causing this, or how I could investigate further?
Thanks!
------------------
Mark Newman
Why doesn't it paint?! Here's the setup:
The control won't paint anything except the background color (white). The control sends
& receives messages, responds to events and executes functions but no painting! For example,
if I right-click on the control area, it sends the SHOW_PROPERTIES_PAGE message, telling me
that the user wants to see the Properties page. But when I call the "ShowPropertiesPage()"
function the properties page doesn't show up!
Spy++ shows that the control is created, has a hWnd, a Thread ID, a parent hWnd and as I
mentioned processes events & messages OK. The control window has the WS_GROUP, WS_VISIBLE,
WS_TABSTOP and %WS_CHILD attributes, nothing unnusual there.
Here's the DDT control-creation line I'm using:
Code:
Control Add "ClassName", hfrmMain, %ID_CUSTOM, "Title", 1,50,370,180, _ %WS_GROUP Or %WS_VISIBLE Or %WS_TABSTOP Or %WS_CHILD, %WS_EX_CLIENTEDGE
so there's very little for the host app to do. So I'm puzzled (certainly not the first time

as to why there's no painting.
Any ideas on what might be causing this, or how I could investigate further?
Thanks!
------------------
Mark Newman
Comment