English
SKControl.DLL

ID the Buttons

 
Hello Sebastian...

How have you got with the whom IDs the Buttons geregelt? I have something Problems The with %MENUITEM abzufragen...

Greeting

Andreas
 
10/29/06  
 



the shows me TNT as ID on. make I evtl. there what wrong?

107 kB
Kurzbeschreibung: ID one SKControl Buttons
Hochgeladen:10/29/06
Downloadcounter193
Download
 
10/29/06  
 




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.
 
10/29/06  
 



so, here's code. What do I do wrong?
CompileMarkSeparation
Declare 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&
 
10/29/06  
 




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

40 kB
Hochgeladen:10/29/06
Downloadcounter109
Download
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
10/29/06  
 



thanks, are pointed!
 
10/29/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.354 Views

Untitledvor 0 min.
ByteAttack09/11/14
Ernst06/03/13
Peter Gückstock02/24/13
AndreasS12/06/11
More...

Themeninformationen

this Topic has 2 subscriber:

unbekannt (5x)
Sebastian König (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie