달력

4

« 2024/4 »

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
BOOL CFileManagerDlg::PreTranslateMessage(MSG* pMsg)
{
 if( pMsg->hwnd == m_List_Explorer.m_hWnd )
 {
  if(pMsg->message == WM_KEYDOWN)
  {
   if(::GetKeyState(VK_CONTROL) < 0 && pMsg->wParam == 'A')
   {
    for (int i=0; i<m_List_Explorer.GetItemCount(); i++)
     m_List_Explorer.SetItemState(i, LVIS_FOCUSED | LVIS_SELECTED, LVIS_FOCUSED | LVIS_SELECTED);
     
    return TRUE;
   }
  }
 }
 
 return CDialog::PreTranslateMessage(pMsg);
}

대략 이런식이다...
:
Posted by Lunaness