Click here to Skip to main content
15,893,622 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A simple array question Pin
jmkhael2-Oct-02 4:51
jmkhael2-Oct-02 4:51 
GeneralRe: A simple array question Pin
ns2-Oct-02 5:24
ns2-Oct-02 5:24 
GeneralRe: A simple array question Pin
Joe Herbert2-Oct-02 5:43
Joe Herbert2-Oct-02 5:43 
GeneralRe: A simple array question Pin
ns2-Oct-02 5:50
ns2-Oct-02 5:50 
GeneralRe: A simple array question Pin
jmkhael2-Oct-02 6:07
jmkhael2-Oct-02 6:07 
GeneralHelp with fstream Pin
Sunnygirl2-Oct-02 4:23
Sunnygirl2-Oct-02 4:23 
GeneralRe: Help with fstream Pin
RedZenBird2-Oct-02 4:29
RedZenBird2-Oct-02 4:29 
GeneralGetKeyState() question Pin
dazinith2-Oct-02 4:14
dazinith2-Oct-02 4:14 
i am trying to figure out if the user has 3 keys held down, if so i wanna popup my credits for my program.. the code i see referrences VK_CONTROL, VK_SHIFT, VK_ENTER, but what about normal letters? i tried to override OnKeyDown() but it never gets called.. here is what im using now:
BOOL CAboutDlg::PreTranslateMessage(MSG* pMsg)
{
  if(pMsg->message==WM_KEYDOWN)
  {
    BOOL bS = (GetKeyState(VK_ENTER) & 0x8000);
    if (bS)
      AfxMessageBox("ding!");
  }	
  return CDialog::PreTranslateMessage(pMsg);
}


thanks for any suggestions!


still a newb.. cut me some slack :P
-dz
GeneralRe: GetKeyState() question Pin
Tomasz Sowinski2-Oct-02 4:38
Tomasz Sowinski2-Oct-02 4:38 
GeneralRe: GetKeyState() question Pin
dazinith2-Oct-02 5:20
dazinith2-Oct-02 5:20 
GeneralRe: GetKeyState() question Pin
adamUK2-Oct-02 5:38
adamUK2-Oct-02 5:38 
GeneralRe: GetKeyState() question Pin
Chris Richardson2-Oct-02 10:06
Chris Richardson2-Oct-02 10:06 
GeneralClistctrl and sorting in report view Pin
ns2-Oct-02 4:13
ns2-Oct-02 4:13 
GeneralRe: Clistctrl and sorting in report view Pin
Michael P Butler2-Oct-02 4:28
Michael P Butler2-Oct-02 4:28 
GeneralCString and 'type' question Pin
ns2-Oct-02 3:40
ns2-Oct-02 3:40 
GeneralRe: CString and 'type' question Pin
Tomasz Sowinski2-Oct-02 3:50
Tomasz Sowinski2-Oct-02 3:50 
GeneralRe: CString and 'type' question Pin
ns2-Oct-02 4:09
ns2-Oct-02 4:09 
GeneralRe: CString and 'type' question Pin
Tomasz Sowinski2-Oct-02 4:35
Tomasz Sowinski2-Oct-02 4:35 
GeneralRe: CString and 'type' question Pin
RedZenBird2-Oct-02 4:40
RedZenBird2-Oct-02 4:40 
GeneralRe: CString and 'type' question Pin
Chris Losinger2-Oct-02 5:25
professionalChris Losinger2-Oct-02 5:25 
GeneralWeird Memory Usage Pin
Chris Hambleton2-Oct-02 2:37
Chris Hambleton2-Oct-02 2:37 
GeneralRe: Weird Memory Usage Pin
Tomasz Sowinski2-Oct-02 2:47
Tomasz Sowinski2-Oct-02 2:47 
GeneralCListCtrl and multiselect question Pin
ns2-Oct-02 1:25
ns2-Oct-02 1:25 
GeneralRe: CListCtrl and multiselect question Pin
Tomasz Sowinski2-Oct-02 1:33
Tomasz Sowinski2-Oct-02 1:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.