Hi, I did a lot of programming in Basic and now want to learn C. I played a bit with the MDI-example. I added a statusbar by adding three lines in the WinMain function:
HWND hwndStatus;
int IDC_STATUSBAR = 10001;
hwndStatus = CreateWindowEx(0, STATUSCLASSNAME, "start text", SBARS_SIZEGRIP|WS_CHILD|WS_VISIBLE,
//0, 0, 0, 0, hwnd, (HMENU)IDC_STATUSBAR, ghInstance, 0);
This works. Now I would like to move these lines to a new file. So I added a file 'statusbar.c' and moved the three lines there, as part of a new function 'static void CreateStatusBar'.
I add this one as prototype as 'static void CreateStatusBar;'
Now when I compile, I get an error:
error #2149: Undefined size for 'CreateStatusBar' with type 'void'.
Where do I need to add a size to this prototype? And what size?
Any help would be appreciated.
W-EU