C++ expected an expression on status bar

Daniel Shepherd 246 Reputation points
2021-07-25T22:00:35.8+00:00

I am on the tutorial on winprog.org, and I am making a status bar. here is my code:

hStatus = CreateWindowEx(0, STATUSCLASSNAME, NULL, WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP, 0, 0, 0, 0, hWnd, (HMENU)IDC_MAIN_STATUS, GetModuleHandle(NULL), NULL);  

errors:
117687-screenshot-2021-07-25-163158.png
also by status bar, i mean like this:
117698-status-bar.png

Windows development | Windows API - Win32
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.