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





  • @Th69 ,
    If I creare the mainwindow like this:
    HWND hWnd = CreateWindowW(szWindowClass,szTitle, WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX,
    x_pos,y_pos,wWidth,wHeight,nullptr,nullptr,hInstance,nullptr);

    there is no sizegrip, but not everybody wants to create this type of window


Anmelden zum Antworten