[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?
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?
But WS_EX_TOOLWINDOW will make the caption bar thinner - will it be good?
[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]
baZik, there is no system button(s) at the top-right of the caption.
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.
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.