Changeset 6762 for trunk/src/user32/defwndproc.cpp
- Timestamp:
- Sep 19, 2001, 5:39:52 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/defwndproc.cpp
r5935 r6762 1 /* $Id: defwndproc.cpp,v 1.1 5 2001-06-09 14:50:17 sandervl Exp $ */1 /* $Id: defwndproc.cpp,v 1.16 2001-09-19 15:39:47 sandervl Exp $ */ 2 2 3 3 /* … … 15 15 #include "syscolor.h" 16 16 #include "win32wbase.h" 17 #include "win32wnd.h"18 #include "win32wmdichild.h"19 17 #include "win32dlg.h" 20 18 … … 102 100 //****************************************************************************** 103 101 //****************************************************************************** 104 LRESULT WIN32API DefFrameProcA(HWND hwndFrame, HWND hwndMDIClient, UINT Msg, WPARAM wParam, LPARAM lParam)105 {106 Win32Window *window;107 LRESULT result;108 109 window = (Win32Window *)Win32BaseWindow::GetWindowFromHandle(hwndFrame);110 if(!window) {111 dprintf(("DefFrameProcA, window %x not found", hwndFrame));112 return 0;113 }114 result = window->DefFrameProcA(hwndMDIClient, Msg, wParam, lParam);115 RELEASE_WNDOBJ(window);116 return result;117 }118 //******************************************************************************119 //******************************************************************************120 LRESULT WIN32API DefFrameProcW(HWND hwndFrame, HWND hwndMDIClient, UINT Msg, WPARAM wParam, LPARAM lParam)121 {122 Win32Window *window;123 LRESULT result;124 125 window = (Win32Window *)Win32BaseWindow::GetWindowFromHandle(hwndFrame);126 if(!window) {127 dprintf(("DefFrameProcW, window %x not found", hwndFrame));128 return 0;129 }130 result = window->DefFrameProcW(hwndMDIClient, Msg, wParam, lParam);131 RELEASE_WNDOBJ(window);132 return result;133 }134 //******************************************************************************135 //******************************************************************************136 LRESULT WIN32API DefMDIChildProcA(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)137 {138 Win32MDIChildWindow *window;139 LRESULT result;140 141 window = (Win32MDIChildWindow *)Win32BaseWindow::GetWindowFromHandle(hwnd);142 if(!window) {143 dprintf(("DefMDIProcA, window %x not found", hwnd));144 return 0;145 }146 if(!window->isMDIChild()) {147 dprintf(("App called DefMDIChildProcA for non-MDI window %x", hwnd));148 result = window->DefWindowProcA(Msg, wParam, lParam);149 }150 else result = window->DefMDIChildProcA(Msg, wParam, lParam);151 RELEASE_WNDOBJ(window);152 return result;153 }154 //******************************************************************************155 //******************************************************************************156 LRESULT WIN32API DefMDIChildProcW(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam)157 {158 Win32MDIChildWindow *window;159 LRESULT result;160 161 window = (Win32MDIChildWindow *)Win32BaseWindow::GetWindowFromHandle(hwnd);162 if(!window) {163 dprintf(("DefMDIProcW, window %x not found", hwnd));164 return 0;165 }166 if(!window->isMDIChild()) {167 dprintf(("App called DefMDIChildProcA for non-MDI window %x", hwnd));168 result = window->DefWindowProcW(Msg, wParam, lParam);169 }170 else result = window->DefMDIChildProcW(Msg, wParam, lParam);171 RELEASE_WNDOBJ(window);172 return result;173 }174 //******************************************************************************175 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.