diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-06-02 08:37:33 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-06-02 08:37:33 +0000 |
commit | 6de378ee40f1f2170ca7cba2163a79e320b8ffa8 (patch) | |
tree | fb0503586be42cfecffaedee169b6255375d9bdc | |
parent | 6628a19f85992b77430f7ed9f5e925e1e6bc109b (diff) | |
download | fpGUI-6de378ee40f1f2170ca7cba2163a79e320b8ffa8.tar.xz |
* Patch from Vladimir for application icon under Windows.
-rw-r--r-- | src/corelib/gdi/gfx_gdi.pas | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/gdi/gfx_gdi.pas b/src/corelib/gdi/gfx_gdi.pas index f55f9b4c..77b4379d 100644 --- a/src/corelib/gdi/gfx_gdi.pas +++ b/src/corelib/gdi/gfx_gdi.pas @@ -915,7 +915,8 @@ begin style := CS_HREDRAW or CS_VREDRAW or CS_OWNDC or CS_DBLCLKS; lpfnWndProc := WndProc(@fpgWindowProc); hInstance := MainInstance; - hIcon := LoadIcon(0, IDI_APPLICATION); + // hIcon := LoadIcon(0, IDI_APPLICATION); + hIcon := LoadIcon(hInstance, 'MAINICON'); hCursor := LoadCursor(0, IDC_ARROW); hbrBackground := 0; //COLOR_WINDOW; lpszClassName := 'FPGWIN'; |