Einzelnen Beitrag anzeigen

Reinhard Kern

Registriert seit: 22. Okt 2006
772 Beiträge
 
#2

Re: [nonVCL] Subclassing eines StcCtrl's / falscher Font...

  Alt 30. Jun 2007, 10:25
Zitat von turboPASCAL:
Hi,

ich möchte in einem Dialogfenster ein Staticcontrol subclassen. Leider wird nicht wie ich
dachte der an das Staticcontrol, ein Statictext, der von mir gesetzte Font verwendet sondern
der Systemfont.
Wenn man SetWindowLong auskommentiert ist der gewünschte Font richtig gesetzt worden.

Habe ich was übersehen ?
Ja (Zitat aus MSDN):
>
GWL_WNDPROC
Sets a new address for the window procedure.

Windows NT/2000/XP: You cannot change this attribute if the window does not belong to the same process as the calling thread.
<

Was du machen möchtest, hat mit Win16 mal funktioniert.

Gruss Reinhard
  Mit Zitat antworten Zitat