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