본문 바로가기
반응형

subclass4

[개발/VC++] SubClassing 하는 방법 VC++ Source Code // Subclassing.cpp : Defines the entry point for the application. // #include "stdafx.h"#include #define STRSAFE_NO_DEPRECATE WNDPROC g_pOldProc; char szAppName[]="Subclassing Demo"; LRESULT CALLBACK SubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { if(uMsg == WM_CLOSE) { DestroyWindow(hWnd); PostQuitMessage(0); return 0; } return CallWindowProc(g_pOldProc, hWnd.. 2015. 1. 15.
[개발/VC] IE 서브클래싱(subclass) [VC] IE 서브클래싱(subclass) WNDPROC g_pOldProc;static LRESULT CALLBACK MyIEProc(HWND, UINT, WPARAM, LPARAM); void CBand::SubClass(HWND hWnd){ // 64bit 환경을 위해서 SetWindowLongPtr() 사용 g_pOldProc = (WNDPROC) SetWindowLongPtr(hwndOfCallingComponent, GWLP_WNDPROC, (LONG_PTR)IEProc);} LRESULT CALLBACK CBand::MyIEProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { BOOL bRes = false; if (Message =.. 2015. 1. 15.
[개발/VC] IE 서브클래싱(subclass) [VC] IE 서브클래싱(subclass) WNDPROC g_pOldProc; static LRESULT CALLBACK MyIEProc(HWND, UINT, WPARAM, LPARAM); void CBand::SubClass(HWND hWnd) { // 64bit 환경을 위해서 SetWindowLongPtr() 사용 g_pOldProc = (WNDPROC) SetWindowLongPtr(hwndOfCallingComponent, GWLP_WNDPROC, (LONG_PTR)IEProc); } LRESULT CALLBACK CBand::MyIEProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { BOOL bRes = false; if (Messag.. 2011. 2. 7.
[VC++] SubClassing 하는 방법 VC++ Source Code // Subclassing.cpp : Defines the entry point for the application. // #include "stdafx.h"#include #define STRSAFE_NO_DEPRECATE WNDPROC g_pOldProc; char szAppName[]="Subclassing Demo"; LRESULT CALLBACK SubclassProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { if(uMsg == WM_CLOSE) { DestroyWindow(hWnd); PostQuitMessage(0); return 0; } return CallWindowProc(g_pOldProc, hWnd.. 2011. 1. 18.
반응형