if(msg == CDN_TYPECHANGE) { instance->OnTypeChange(hwnd); return 1;
if(msg == WM_NOTIFY) { OFNOTIFY *notify = (OFNOTIFY *)lParam; if(notify) { if(notify->hdr.code == CDN_TYPECHANGE) { instance->OnTypeChange(hwnd); return 1; } }
UINT_PTR CALLBACK HookFunc(HWND hwnd,                           UINT msg,                           WPARAM wParam,                           LPARAM lParam){  if(instance) {    if(msg == CDN_TYPECHANGE) {      instance->OnTypeChange(hwnd);      return 1;    }  }  return 0;}