Programming Q & A

Q : Alt Click 을 어떻게 처리하나요?
A :
case WM_LBUTTONDOWN:
     if( GetAsyncKeyState( VK_MENU ) )     // alt key가 눌렸을때...
     {
         // Alt Key를 눌렀을때의 처리....
     }


Q : 작업 표시줄에 아이콘은 어떻게 표시하나요?
A :
case WM_CREATE:
     // Change program icon
     hIcon = (HICON) LoadImage( hInst, MAKEINTRESOURCE(IDI_APP_ICON),
          IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR ) ;
     if ( hIcon )
     {
          SendMessage( hWnd, WM_SETICON, FALSE, (LPARAM)hIcon ) ;
     }


Copyright © 1998-2006 PDAProgramming.com All rights reserved.