FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Icon on top left of window.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Icon on top left of window.
Posted: Mon Aug 08, 2011 10:17 AM

Guys:

How can I display a custom icon on the top left corner of the app's main window ?

Thank you.

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Icon on top left of window.
Posted: Mon Aug 08, 2011 10:22 AM
In your .RC file

Code (fw): Select all Collapse
AppIcon ICON DISCARDABLE "Images/AppIcon.ico"


In your Prg where you define your main window

Code (fw): Select all Collapse
DEFINE ICON  oAppIcon RESOURCE "AppIcon"
DEFINE WINDOW oWnd FROM 0,0  TO GetSysMetrics(1), GetSysMetrics(0) MDI ;
      TITLE oApp:cAppName ;
      ICON  oAppIcon ;
      MENU  BuildMenu()


Regards
Anser
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Icon on top left of window.
Posted: Mon Aug 08, 2011 10:32 AM

Thank you Anser.

Continue the discussion