summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-02 08:37:33 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2008-06-02 08:37:33 +0000
commit6de378ee40f1f2170ca7cba2163a79e320b8ffa8 (patch)
treefb0503586be42cfecffaedee169b6255375d9bdc
parent6628a19f85992b77430f7ed9f5e925e1e6bc109b (diff)
downloadfpGUI-6de378ee40f1f2170ca7cba2163a79e320b8ffa8.tar.xz
* Patch from Vladimir for application icon under Windows.
-rw-r--r--src/corelib/gdi/gfx_gdi.pas3
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';