#include "winutil.h"Include dependency graph for winutil.cpp:

Go to the source code of this file.
Functions | |
| void | AddButtonDefaultStyle (HWND hWnd) |
| void | CenterWindow (HWND hParent, HWND hWnd) |
| void | RemoveButtonDefaultStyle (HWND hWnd) |
| void | SetMouseCursor (LPCTSTR lpCursor) |
|
|
Definition at line 47 of file winutil.cpp. Referenced by AddBookmarkFolderProc(), AddBookmarkProc(), and RenameBookmarkProc(). 00048 {
00049 SetWindowLong(hWnd, GWL_STYLE,
00050 ::GetWindowLong(hWnd, GWL_STYLE) | BS_DEFPUSHBUTTON);
00051 InvalidateRect(hWnd, NULL, TRUE);
00052 }
|
|
||||||||||||
|
Definition at line 20 of file winutil.cpp. Referenced by AddBookmarkFolderProc(), and RenameBookmarkProc(). 00021 {
00022 //Center window with hWnd handle relative to hParent.
00023 if (hParent && hWnd)
00024 {
00025 RECT or, ir;
00026 if (GetWindowRect(hParent, &or))
00027 {
00028 if (GetWindowRect(hWnd, &ir))
00029 {
00030 int x, y;
00031
00032 x = or.left + (or.right - or.left - (ir.right - ir.left)) / 2;
00033 y = or.top + (or.bottom - or.top - (ir.bottom - ir.top)) / 2;;
00034 SetWindowPos(hWnd, HWND_TOP, x, y, 0, 0, SWP_NOSIZE | SWP_NOZORDER);
00035 }
00036 }
00037 }
00038 }
|
|
|
Definition at line 40 of file winutil.cpp. Referenced by AddBookmarkFolderProc(), AddBookmarkProc(), and RenameBookmarkProc(). 00041 {
00042 SetWindowLong(hWnd, GWL_STYLE,
00043 ::GetWindowLong(hWnd, GWL_STYLE) & ~BS_DEFPUSHBUTTON);
00044 InvalidateRect(hWnd, NULL, TRUE);
00045 }
|
|
|
Definition at line 12 of file winutil.cpp. 00013 {
00014 HCURSOR hNewCrsr;
00015
00016 if (hNewCrsr = LoadCursor(NULL, lpCursor))
00017 SetCursor(hNewCrsr);
00018 }
|
1.4.1