I have been trying to create a status bar on the bottom of my window. I can not make it work. I have tried CreateStatusWindow which does not work as well as being deprecated.
Code:
status = CreateWindowEx(
                     0,
                     STATUSCLASSNAME,
                     (LPCTSTR) "No user selected.",
                     SBARS_SIZEGRIP | WS_CHILD,
                     0, 0, 0, 0,
                     hwndDlg,
                     (HMENU) NULL,
                     hInst,
                     NULL);
        INT statsize=(-1);
       SendMessage((HWND)status, (UINT)SB_SETPARTS, (WPARAM)1, (LPARAM)(PINT)&statsize);