A coupe of little changes for TMdiFrame and TMdiChild

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

A coupe of little changes for TMdiFrame and TMdiChild

Post by Enrico Maria Giordano »

TMdiFrame:

1) It seems that the correct default colors for an MDI frame window are

Code: Select all | Expand

nClrFore  := GetSysColor( COLOR_WINDOWTEXT ), nClrBack := GetSysColor( COLOR_APPWORKSPACE ),;


instead of the current

Code: Select all | Expand

nClrFore  := CLR_BLACK, nClrBack := GetSysColor( COLOR_WINDOW ),;


2) We get a better look of the window icon if

Code: Select all | Expand

SendMessage( ::hWnd, WM_SETICON, 0, oIcon:hIcon )


is commented out.

TMdiChild:

1) As for TMdiFrame, it is better to comment out

Code: Select all | Expand

::SendMsg( WM_SETICON, 0, oIcon:hIcon )


EMG
User avatar
Antonio Linares
Site Admin
Posts: 42516
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Post by Antonio Linares »

Enrico,

Implemented,

many thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply