Question and Answer Database FAQ4310C.txt :Creating "help cursor" functionality without the "?" button in the caption Category :Windows API Platform :Win95/NT Product :C++Builder1.0, C++Builder3.x, C++Builder4.x, Question: How can I change the cursor to the "?" help style (crHelp in BCB) in response to clicking on a given button, and have it appropriately summon help for the next control I click on? My form is a main window, not a dialog, so I can't get that "?" button in the caption. Answer: Obviously, you need to have your help files (and the links from your controls to those help files) set up correctly. Assuming you do, insert the following code in the OnClick event of your "Help" button: SendMessage(Form->Handle,WM_SYSCOMMAND,SC_CONTEXTHELP,0); This should change the cursor to the help cursor, send a WM_HELP message to whatever control you click on next, and then change the cursor back after you click. In theory, this should work in straight API, OWL, and MFC code by simply substituting whatever mechanism supplies the main window's HWND for Form->Handle. 1/21/1999 2:55:52 PM
Last Modified: 01-SEP-99