[size=9]

INVOKE CreateWindowEx,NULL,ADDR ClassName,ADDR AppName,\
WS_CAPTION+WS_MAXIMIZEBOX+WS_MINIMIZEBOX+WS_THICKFRAME+WS_BORDER,\
CW_USEDEFAULT, CW_USEDEFAULT,258,350,NULL,NULL,\
hInst,NULL
[/size]


I want a window without the top-left system menu and with three buttons at the top-right. After i the window is created, there is no maximize/minmize box in the caption, but i specify the corrosponding style.

What am i doing wrong?
Posted on 2002-06-13 09:39:01 by yoursguideline
If your window doesn't have the system menu it can't own min/max buttons, unless WS_EX_TOOLWINDOW bit is set.

But WS_EX_TOOLWINDOW will make the caption bar thinner - will it be good?
Posted on 2002-06-13 09:44:48 by C.Z.
[size=9]

INVOKE CreateWindowEx,NULL,ADDR ClassName,ADDR AppName,\
WS_CAPTION + WS_THICKFRAME+WS_BORDER,\
CW_USEDEFAULT, CW_USEDEFAULT,258,350,NULL,NULL,\
hInst,NULL
[/size]
Posted on 2002-06-13 09:54:16 by bazik
baZik, there is no system button(s) at the top-right of the caption.
Posted on 2002-06-13 10:01:22 by yoursguideline
INVOKE	CreateWindowEx, WS_EX_TOOLWINDOW, 

ADDR ClassName, ADDR AppName, WS_CAPTION + WS_THICKFRAME + WS_MAXIMIZEBOX + WS_MINIMIZEBOX,
CW_USEDEFAULT, CW_USEDEFAULT, 258, 350, NULL, NULL, hInst, NULL


However the window will not appear on the taskbar, as it's toolwindow. But that's the only way it's possible - no system menu, but min/max buttons.

P.S. the WS_CAPTION includes WS_BORDER; you don't have to write WS_BORDER again.
Posted on 2002-06-13 10:14:44 by C.Z.

baZik, there is no system button(s) at the top-right of the caption.


No offence but,
create your own. It's a easy task to do.
Posted on 2002-06-13 10:20:30 by bazik