Trad
New Member
Posts: 1,122
|
Post by Trad on May 30, 2003 5:24:03 GMT -5
These are the following types of cursors that you can use when making a Win32 program. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASs** WndClass**; WndClass**.cbSize = sizeof(WndClass**); WndClass**.cbCls**tra= 0; // No extra storage WndClass**.cbWndExtra= 0; // No extra storage WndClass**.hbrBackground=(HBRUSH)COLOR_BTNSHADOW;// Background WndClass**.hCursor= LoadCursor(NULL,[glow=red,2,300]Cursor Name[/glow]);WndClass**.hIcon= LoadIcon(NULL, IDI_APPLICATION); WndClass**.hIconSm=LoadIcon(NULL, IDI_APPLICATION); // Default app icon WndClass**.hInstance= hInstance; WndClass**.lpfnWndProc= WndProc; WndClass**.lpszClassName = "Window Class"; WndClass**.lpszMenuName= NULL; WndClass**.style= CS_VREDRAW | CS_HREDRAW | CS_OWNDC; [glow=green,2,300]^^ That code you will need in every Win32 program (set attributes of a window) and part of that is the type of cursor you want. [/glow] The possible types are (excluding your own) are br] IDC_ARROW (plain) IDC_HELP (arrow + question mark) IDC_APPSTARTING (arrow + egg timer) IDC_SIZENWISE IDC_IBEAM IDC_SIZEALL IDC_SIZEWE IDC_CROSS IDC_SIZENESW IDC_UPARROW IDC_HAND IDC_NO IDC_SIZENS IDC_WAIT You can also set a cursor in a program by just using [glow=blue,2,300]LoadCursor(NULL,IDC_WAIT);[/glow] etc etc
|
|