목록기타/Win32 API (6)
계밥의 작업소
윈도우 클래스를 정의하는 두 가지 구조체임차이점은 WNDCLASSEX가 cbsize, hIconSm을 더 가지고 있다는 것! WNDCLASS: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633576(v=vs.85).aspxWNDCLASSEX: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633577(v=vs.85).aspx *** 윈도우 클래스에서 중요한 것!!! *** IpszClassName : 윈도우의 클래스(창이름 정도?)를 정의IpfnWndProc : 메시지 처리함수를 지정 출처 : MSDN Library(영문)
: 즉, 키입력을 가공시킴 Return value Type: BOOLIf the message is translated (that is, a character message is posted to the thread's message queue), the return value is nonzero.If the message is WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, or WM_SYSKEYUP, the return value is nonzero, regardless of the translation.If the message is not translated (that is, a character message is not posted to the thread's message ..
DefWindowProc원형LRESULT DefWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);MFC 원형virtual LRESULT CWnd::DefWindowProc( UINT message, WPARAM wParam, LPARAM lParam );인수▶hWnd : 메시지를 받은 윈도우의 핸들▶Msg : 메시지 구조체▶wParam : 메시지 정보▶lParam : 메시지 정보. 이상 4개의 인수는 WndProc 함수가 전달받은 인수들과 동일하다.리턴메시지를 처리한 결과를 리턴하며 이 결과는 메시지에 따라 다르다. 윈도우 프로시저는 이 함수가 리턴한 값을 다시 리턴해 주어야 한다.설명이 함수는 윈도우 프로시저가 처리하지 않은 메시지의 디폴트 ..
윈도우 7 64bit에서 ODBC를 추가한 경우 제대로 안 돌아가는 경우가 있다.가령, 디버깅을 해봤는데 hStmt의 값이 NULL로 바뀐다든가..... 그래서 SQL를 날리고 결과값을 받아와보니 NO_DATA를 리턴하지 않는 경우 ㅇㅇ그런 경우는 우선 윈도우 7 64bit를 쓰는지 의심해봐야한다. 만약 쓰고 있다면, 32bit와 64bit간의 충돌(?)에 의한 것이라고 보면 된다.윈도우 7 64bit 제어판에서 데이터 원본 관리자(ODBC)를 실행해 DB를 설정했으면, 그 프로그램이 64bit에서 돌아갈때 적용이 가능하게 됩니다.근데 32bit 환경에서 64bit 기준으로 실행하려면 당연히 안 되겠죠.따라서, 아예 ODBC가 32bit 환경에서 돌아가도록 하는 것이 확실할 겁니다. http://supp..
: 즉, 키입력을 가공시킴 Return value Type: BOOL If the message is translated (that is, a character message is posted to the thread's message queue), the return value is nonzero. If the message is WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, or WM_SYSKEYUP, the return value is nonzero, regardless of the translation. If the message is not translated (that is, a character message is not posted to the thread's messa..
윈도우 클래스를 정의하는 두 가지 구조체임 차이점은 WNDCLASSEX가 cbsize, hIconSm을 더 가지고 있다는 것! WNDCLASS: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633576(v=vs.85).aspxWNDCLASSEX: http://msdn.microsoft.com/en-us/library/windows/desktop/ms633577(v=vs.85).aspx *** 윈도우 클래스에서 중요한 것!!! *** IpszClassName : 윈도우의 클래스(창이름 정도?)를 정의IpfnWndProc : 메시지 처리함수를 지정 출처 : MSDN Library(영문) 원작성 : 2013. 7. 26. 23:11