Changeset 3182 for trunk/src/comctl32/nativefont.cpp
- Timestamp:
- Mar 21, 2000, 6:30:46 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/comctl32/nativefont.cpp
r3145 r3182 1 /* $Id: nativefont.cpp,v 1. 2 2000-03-17 17:13:23 cbratschi Exp $ */1 /* $Id: nativefont.cpp,v 1.3 2000-03-21 17:30:43 cbratschi Exp $ */ 2 2 /* 3 3 * Native Font control … … 5 5 * Copyright 1998, 1999 Eric Kohl 6 6 * Copyright 1999 Achim Hasenmueller 7 * Copyright 2000 Christoph Bratschi 7 8 * 8 9 * NOTES … … 53 54 } 54 55 56 static VOID NATIVEFONT_Draw(HWND hwnd,HDC hdc,RECT *updateRect) 57 { 58 drawStubControl(hwnd,hdc); 59 } 55 60 61 static LRESULT NATIVEFONT_Paint(HWND hwnd,WPARAM wParam,LPARAM lParam) 62 { 63 HDC hdc = (HDC)wParam; 56 64 57 static LRESULT WINAPI 58 NATIVEFONT_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) 65 if (!hdc) 66 { 67 PAINTSTRUCT ps; 68 69 hdc = BeginPaint(hwnd,&ps); 70 NATIVEFONT_Draw(hwnd, hdc,&ps.rcPaint); 71 EndPaint(hwnd,&ps); 72 } else 73 NATIVEFONT_Draw(hwnd,hdc,NULL); 74 75 return 0; 76 } 77 78 static LRESULT WINAPI NATIVEFONT_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) 59 79 { 60 switch (uMsg) 61 { 80 switch (uMsg) 81 { 82 case WM_CREATE: 83 return NATIVEFONT_Create(hwnd,wParam,lParam); 62 84 63 case WM_CREATE:64 return NATIVEFONT_Create (hwnd, wParam,lParam);85 case WM_DESTROY: 86 return NATIVEFONT_Destroy(hwnd,wParam,lParam); 65 87 66 case WM_DESTROY:67 return NATIVEFONT_Destroy (hwnd, wParam,lParam);88 case WM_PAINT: 89 return NATIVEFONT_Paint(hwnd,wParam,lParam); 68 90 69 default: 70 // ERR (nativefont, "unknown msg %04x wp=%08x lp=%08lx\n", 71 // uMsg, wParam, lParam); 72 return defComCtl32ProcA (hwnd, uMsg, wParam, lParam); 73 } 74 return 0; 91 default: 92 return defComCtl32ProcA (hwnd, uMsg, wParam, lParam); 93 } 94 return 0; 75 95 } 76 96
Note:
See TracChangeset
for help on using the changeset viewer.