resource trouble

Started by
0 comments, last by Fixxer 17 years, 12 months ago
I cannot get my icon and cursor to work! Here is where I am setting the icons and cursor

	winclass.cbSize = sizeof(WNDCLASSEX);
	winclass.style = CS_DBLCLKS | CS_OWNDC | CS_HREDRAW | CS_VREDRAW;
	winclass.cbClsExtra = 0;
	winclass.lpfnWndProc = WindowProc;
	winclass.cbClsExtra = 0;
	winclass.cbWndExtra = 0;
	winclass.hInstance = hinstance;
	winclass.hIcon = LoadIcon(hinstance , MAKEINTRESOURCE(ID_ICON1));
	winclass.hCursor = LoadCursor(hinstance, MAKEINTRESOURCE(ID_CURSOR_CROSS));
	winclass.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
	winclass.lpszMenuName = NULL;
	winclass.lpszClassName = WINDOW_CLASS_NAME;
	winclass.hIconSm = LoadIcon(hinstance, MAKEINTRESOURCE(ID_ICON1));

Here is the header file with the resouce defines

#define ID_ICON1			101
#define ID_CURSOR_CROSS		201

and here is my resource file:

ID_ICON1 ICON icon.ico

ID_CURSOR_CROSS CURSOR cursor.cur

Advertisement
bump

This topic is closed to new replies.

Advertisement