How to get the keyboard inputs
-
Hi all, My application uses a spalsh screen for about 30 seconds and then the main window appears. During these if the user types any keyboard key ,the main window should appear immediately. My code looks like this: // *************** SPLASH SCREEN *********************** // create a temp. invisible wnd. as parent of splash screen if(m_wndOwner.m_hWnd == NULL) { LPCTSTR pstrOwnerClass = AfxRegisterWndClass(0); if ( !m_wndOwner.CreateEx(0, pstrOwnerClass, _T(""), WS_POPUP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, 0) ) return FALSE; } int nDelay = 30000; // Create and show the splash screen. CSplashWnd::ShowSplashScreen(nDelay, BMP_MICATECH_BIG, &m_wndOwner); Sleep(nDelay) ; Can any one tell me how to overcome these problem? Regards, Veeresh
-
Hi all, My application uses a spalsh screen for about 30 seconds and then the main window appears. During these if the user types any keyboard key ,the main window should appear immediately. My code looks like this: // *************** SPLASH SCREEN *********************** // create a temp. invisible wnd. as parent of splash screen if(m_wndOwner.m_hWnd == NULL) { LPCTSTR pstrOwnerClass = AfxRegisterWndClass(0); if ( !m_wndOwner.CreateEx(0, pstrOwnerClass, _T(""), WS_POPUP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, 0) ) return FALSE; } int nDelay = 30000; // Create and show the splash screen. CSplashWnd::ShowSplashScreen(nDelay, BMP_MICATECH_BIG, &m_wndOwner); Sleep(nDelay) ; Can any one tell me how to overcome these problem? Regards, Veeresh
-
Hi all, My application uses a spalsh screen for about 30 seconds and then the main window appears. During these if the user types any keyboard key ,the main window should appear immediately. My code looks like this: // *************** SPLASH SCREEN *********************** // create a temp. invisible wnd. as parent of splash screen if(m_wndOwner.m_hWnd == NULL) { LPCTSTR pstrOwnerClass = AfxRegisterWndClass(0); if ( !m_wndOwner.CreateEx(0, pstrOwnerClass, _T(""), WS_POPUP, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, 0) ) return FALSE; } int nDelay = 30000; // Create and show the splash screen. CSplashWnd::ShowSplashScreen(nDelay, BMP_MICATECH_BIG, &m_wndOwner); Sleep(nDelay) ; Can any one tell me how to overcome these problem? Regards, Veeresh
You can use
WM_KEYUP
orWM_KEYDOWN
did you try it?:)
WhiteSky