i'm having problems with the mdi children of and app i'm working on. is there some style i should include somewhere? thanks in advance. I'm not be an ass am i?
I would also like to know of there is another message other than WS_SIZE when a window is MAXIMIZED. not too much to ask i hope.
Is this helping you ? Tutorial 32: Multiple Document Interface (MDI) (http://www.interq.or.jp/chubu/r6/masm32/tute/tute032.html)
thanks greenhorn. i'm checking it out.
I'm not sure that the changes made make much difference. Child windows are still strobing when resized. Thanks anyway. :thumbsup:
Maybe, need double buffering when painting ...
Set the parent window colour to 0 (transparent). You get the flickering due to double repaints.
Thanks ppls. :thumbsup:
Nah....it's still strobing. Thanks anyway. Double buffering? how do i do that? :thumbsup:
In this topic is example (http://masm32.com/board/index.php?topic=8804.0).
What is the WNDCLASSEX style set to ?
If you are using => CS_HREDRAW or CS_VREDRAW
Change it to
CS_BYTEALIGNCLIENT or CS_BYTEALIGNWINDOW
By my experiance WNDCLASSEX - better for small controls, as buttons, for resizeable windows better WNDCLASS - as more options by silence, will work more sure win GDI of differ OS versions.
Thanks Hutch, ty guys. worked like a charm. :thumbsup:
Quote from: Adamanteus on November 07, 2020, 10:26:34 PM
By my experiance WNDCLASSEX - better for small controls, as buttons, for resizeable windows better WNDCLASS - as more options by silence, will work more sure win GDI of differ OS versions.
I made a test with a "difficult" window that has a lot of flicker, and could not see any difference (on Win7-64) :cool:
As is it's not seenable difference :hmmm:
WNDCLASS is just a macro for WNDCLASSEX, WNDCLASS was used in Win16 and it has been maintained via the macro for backwards compatibility.
A macro?
WNDCLASSA STRUCT
style DWORD ?
lpfnWndProc DWORD ?
cbClsExtra DWORD ?
cbWndExtra DWORD ?
hInstance DWORD ?
hIcon DWORD ?
hCursor DWORD ?
hbrBackground DWORD ?
lpszMenuName DWORD ?
lpszClassName DWORD ?
WNDCLASSA ENDS
...
WNDCLASS equ <WNDCLASSA>
Yerp,
But not a MASM macro, its built into the DLL that provides WNDCLASSEX.