statusbar sizegrip

Aug 24, 2019 at 5:41pm
Compiled with Visual Studio (last version).
This produces a statusbar with a "sizegrip".

status_hnd = CreateWindowEx(0,STATUSCLASSNAME,NULL,WS_CHILD|WS_VISIBLE,0,0,0,0,hWnd,NULL,hInstance,NULL);
SendMessage(status_hnd,SB_SETBKCOLOR,0,RGB(192,192,255));

Compiled with dev-cpp.
This produces a statusbar without a "sizegrip".

status_hnd = CreateWindowEx(0,STATUSCLASSNAME,0,WS_CHILD|WS_VISIBLE,0,0,0,0,mainwin_hnd,0,hInstance,NULL);
SendMessage(status_hnd,SB_SETBKCOLOR,0,RGB(192,192,255));

Can someone explain me how to define "with or without sizegrip", please ?

ok. I realized this.
I change the dev-cpp to:

CreateWindowEx(0,STATUSCLASSNAME,0,WS_CHILD|WS_VISIBLE|SBARS_SIZEGRIP,0,0,0,0,mainwin_hnd,0,hInstance,NULL);
Now there is a sizegrip.

But, how to avoid it in Visual Studio
Last edited on Aug 24, 2019 at 6:47pm
Aug 26, 2019 at 8:28am
I found this.
https://stackoverflow.com/questions/47785395/how-to-remove-sbars-sizegrip-from-statusbar

A couple of things seem to be suggested.
1. What you actually get depends on the version of comctl32.dll you're linking with. Newer versions of VS are likely to be linking with later versions of comctl32.dll than dev-cpp.

2. The wxWidgets's statusbar.cpp link suggests SIZEGRIP is basically broken as a selectable feature and offers a work-around.
Aug 26, 2019 at 11:27am
salem c,
I read it ... The work-around isn't very workable
Topic archived. No new replies allowed.