win32, wince: make sure all LoadIcon, LoadCursor go to windows unit instead of graphics

git-svn-id: trunk@30010 -
This commit is contained in:
paul 2011-03-25 06:04:41 +00:00
parent f46538af44
commit 2e3d386b9e
3 changed files with 4 additions and 4 deletions

View File

@ -363,7 +363,7 @@ begin
case DialogType of
idDialogConfirm:
begin
TaskConfig.hMainIcon := LoadIcon(0, IDI_QUESTION);
TaskConfig.hMainIcon := Windows.LoadIcon(0, IDI_QUESTION);
TaskConfig.dwFlags := TaskConfig.dwFlags or TDF_USE_HICON_MAIN;
end;
idDialogInfo: TaskConfig.pszMainIcon := TD_INFORMATION_ICON;
@ -710,7 +710,7 @@ begin
case DialogType of
idDialogConfirm:
begin
TaskConfig.hMainIcon := LoadIcon(0, IDI_QUESTION);
TaskConfig.hMainIcon := Windows.LoadIcon(0, IDI_QUESTION);
TaskConfig.dwFlags := TaskConfig.dwFlags or TDF_USE_HICON_MAIN;
end;
idDialogInfo: TaskConfig.pszMainIcon := TD_INFORMATION_ICON;

View File

@ -280,7 +280,7 @@ begin
Window.cbClsExtra := 0;
Window.cbWndExtra := 0;
Window.hInstance := hInstance;
Window.hCursor := LoadCursor(0, IDC_ARROW);
Window.hCursor := Windows.LoadCursor(0, IDC_ARROW);
Window.hbrBackground := HBRUSH(GetStockObject(NULL_BRUSH));
Window.lpszMenuName := nil;
Window.lpszClassName := szClassName;

View File

@ -536,7 +536,7 @@ begin
hIcon := Windows.LoadIcon(System.hInstance, nil);
if hIcon = 0 then
hIcon := Windows.LoadIcon(0, IDI_APPLICATION);
hCursor := LoadCursor(0, IDC_ARROW);
hCursor := Windows.LoadCursor(0, IDC_ARROW);
hbrBackground := 0;
LPSzMenuName := nil;
LPSzClassName := @ClsName;