I am trying to create a class for a pushbutton in dev c++ but am getting error "crosses initialization of `WinPushButton button3'". Can somebody tell me why is this occuring and solution for this.
Following is the code:
WinPushButton(LPCTSTR CaptionStr, int x, int y, int nWidth, int nHeight, HWND hWndParent);
WinPushButton::WinPushButton(LPCTSTR CaptionStr, int x, int y, int nWidth, int nHeight, HWND hWndParent)
hButton=CreateWindowEx(WS_EX_LEFT, "BUTTON", CaptionStr,
x, y, nWidth, nHeight,
hWndParent, NULL, NULL, NULL);
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
return DefWindowProc(hwnd, msg, wParam, lParam);
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.