You should not have your paint message like:
WM_PAINT:
return 0;
The window will not be repainted unless you call BeginPaint and
EndPaint or(validateRect). Windows will just send multiple paint messages!!! You should atleast declare WM_PAINT as:
WM_PAINT:
BeginPaint(hwnd,&ps);
EndPaint(hwnd, &ps);
return 0;
-----------------------------
"There are ones that say they can and there are those who actually do."
"...u can not learn programming in a class, you have to learn it on your own."
Problem.
You should not have your paint message like:
WM_PAINT:
return 0;
The window will not be repainted unless you call BeginPaint and
EndPaint or(validateRect). Windows will just send multiple paint messages!!! You should atleast declare WM_PAINT as:
WM_PAINT:
BeginPaint(hwnd,&ps);
EndPaint(hwnd, &ps);
return 0;
-----------------------------
"There are ones that say they can and there are those who actually do."
"...u can not learn programming in a class, you have to learn it on your own."
WM_PAINT:
return 0;
The window will not be repainted unless you call BeginPaint and
EndPaint or(validateRect). Windows will just send multiple paint messages!!! You should atleast declare WM_PAINT as:
WM_PAINT:
BeginPaint(hwnd,&ps);
EndPaint(hwnd, &ps);
return 0;
-----------------------------
"There are ones that say they can and there are those who actually do."
"...u can not learn programming in a class, you have to learn it on your own."
hmph. static text troubles me. are there any other ways of putting text on a window? and so it isnt bold looking like static text is?
Send the static text a new font to use if you don''t like the default one. See CreateFont and WM_SETFONT.
i really cant get this to work. i put in the codes with all the right params set, and i keep getting these syntax errors. i dont know if im putting them in the wrong place, or what. could somebody please take me step through step how to accually set it so the background of the child window is transparent and how to change the font to something more appealing? ive "RTFM", its just that its not explained very well to a beginner how to use some of the functions really.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement