statusbar sizegrip

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
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.
salem c,
I read it ... The work-around isn't very workable
Topic archived. No new replies allowed.