| |
|
|
| Hello Sebastian...
How have you got with the whom IDs the Buttons geregelt? I have something Problems The with %MENUITEM abzufragen...
Greeting
Andreas |
|
|
| |
|
|
|
| the shows me TNT as ID on. make I evtl. there what wrong? |
|
|
| |
|
|
|
Sebastian König | [quote:a3022a28b8]the shows me TNT as ID on. make I evtl. there what wrong?[/quote:a3022a28b8]No, The ID is objectively always 0... I thought, the would no trouble, there to request in (X)Profan Yes usually the lever using becomes.
You can but with Bedaf with SetWindowLong() self IDs settle. The problem with of/ one automatischen allocation of IDs would hold, that it possibly Überschneidungen with normalen Controls give would...
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 10/29/06 ▲ |
|
|
|
|
| I kanns Yes again try - but if i remember rightly, has very the not at me worked - I look once more and supply View source, ifs Problems gives. |
|
|
| |
|
|
|
| so, here's code. What do I do wrong? CompileMarkSeparationDeclare REFRESH&,IMG&,DLL&,IMG$,Textfarbe&,HINTERGRUNDFARBE&,Text$
Def @GetWindowLong(2) !"USER32","GetWindowLongA"
Def @SetWindowLong(3) !"USER32","SetWindowLongA"
DEF @LoadImage(6) !"USER32","LoadImageA"
Windowstyle 31+512
WindowTitle "SetWindowLong Test"
Window 0,0-640,440
Usermessages $10
LET DLL&=@USEDLL("SKCONTROL.DLL")
$I SKCONTROL.INC
@SKCtrl_InitDll()
LET IMG$="BAUM"
Let IMG&=@LoadImage(%HINSTANCE,@ADDR(IMG$),$1,18,18,$0)
LET Textfarbe&=@SKCtrl_RGB(150,10,10)
LET HINTERGRUNDFARBE&=@SKCtrl_RGB(255,255,255)
LET Text$="Moin"
LET REFRESH&=@SKCtrl_CreateClrImageButton(%HWND,IMG&,@ADDR(Text$),1,1,Textfarbe&,HINTERGRUNDFARBE&,340,20,-220,30,%HINSTANCE)
Print @GetWindowLong(Refresh&,$FFFFFFF4)
@SetWindowLong(Refresh&,$FFFFFFF4,112)
While %Umessage<>$10
Waitinput
Locate 0,0
Print %Menuitem
wend
DeleteObject IMG&
@SKCtrl_DeInitDll()
FreeDLL DLL&
|
|
|
| |
|
|
|
Sebastian König | [quote:53efa3727a]so, here's code. What do I do wrong?[/quote:53efa3727a]quite nothing . The Error lying in the DLL... How I with one look on my code straight fixes have, becomes with the WM_COMMAND-Message, The on the parents-Window skillful becomes, the GWL_ID-worth none using... I have the with whom ClrImageButtons time quick changed - new version see Appendix...
MfG
Sebastian |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 10/29/06 ▲ |
|
|
|
|
| thanks, are pointed! |
|
|
| |
|
|