Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 949
  • Last Modified:

Hand cursor

Is there any hand cursors that I can display in my MFC app?
0
davidmorand
Asked:
davidmorand
1 Solution
 
bertpCommented:
well there used to be...  A coworker once told me that ms got rid of the hand icon because mischievous developers
would whip out their resource editors and erase half of each finger but leave the middle one whole ;-)

If you need one (whole hand intact), there are many free icon libs on the web!
0
 
akalmaniCommented:
Hi !!
         If u want icons search in www.iconbazaar.com
0
 
proskigCommented:
You can use the following code to load hand cursor
CString strWndDir;
GetWindowsDirectory(strWndDir.GetBuffer(MAX_PATH), MAX_PATH);
strWndDir.ReleaseBuffer();

strWndDir += _T("\\winhlp32.exe");
// This retrieves cursor #106 from winhlp32.exe, which is a hand pointer
HMODULE hModule = LoadLibrary(strWndDir);
if (hModule) {
    HCURSOR hHandCursor = ::LoadCursor(hModule, MAKEINTRESOURCE(106));
    if (hHandCursor)
        m_hLinkCursor = CopyCursor(hHandCursor);
}
FreeLibrary(hModule);

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now