-
May 14th, 2020, 02:05 AM
#1
Can we use OnDrawItem for dynamically created CStatic objects ?
The main problem is a CStatic Object is created dynamically & when I'm changing the background of entire dialog to white, the background of dialog changes except the CStatic Object.
Also if CStatic Object background is white, then it is not visible on the screen.
-
May 14th, 2020, 03:01 AM
#2
Re: Can we use OnDrawItem for dynamically created CStatic objects ?
Yes, you can. Just derive your own class from CStatic and handle any message you need (WM_PAINT, WM_CTLCOLOR, ...)
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|