English
Source / code snippets

Help Kontextabhängige

 
is really only one Workaround. once I what better find, kommts to go there:
CompileMarkSeparation
DEF @SetWindowLong(3) !USER32,SetWindowLongA
DEF @GetWindowLong(2) !USER32,GetWindowLongA
DEF @SetWindowContextHelpId(2) !USER32,SetWindowContextHelpId
DEF @ChildWindowFromPoint(3) !USER32,ChildWindowFromPoint
DEF GetCursorPos(1) !USER32,GetCursorPos
Def ScreenToClient(2) !USER32,ScreenToClient
Declare long&,Fehler&,HWND&,Style%,Button&,Button2&,Message%,curpos#
Declare Mausx&,Mausy&,Handle&
DIM curpos#,8
USERMESSAGES $0053,$1001
WINDOWTITLE Kontexthilfe
WINDOWSTYLE 4+8+16+512
Window 0,0-640,440
LET Button&=@Control(Button,Dies ist ein Test,$40000000+$10000000+$400000+$1000,20,200,300,30,%HWND,2112,%HINSTANCE)
LET Button2&=@Control(Button,Dies ist ein Test 2,$40000000+$10000000+$400000+$1000,20,240,300,30,%HWND,2113,%HINSTANCE)
@Showwindow(%HWND,0)
LET HWND&=%HWND
LET STYLE%=-20
LET LONG&=@GETWINDOWLONG(HWND&,Style%)
LET FEHLER&=@SETWINDOWLONG(HWND&,Style%,$400 | LONG&)
@Showwindow(%HWND,1)

While %MENUITEM<>-2

    IF %uMessage=$0053

        @GetCursorPos(curpos#)
        @ScreenToClient(%HWND,curpos#)
        LET MAUSX&=@LONG(curpos#,0)
        LET MAUSY&=@LONG(curpos#,4)
        LET HANDLE&=@ChildWindowFromPoint(%HWND,MAUSX&,MAUSY&)

        IF HANDLE&=Button&

            @messagebox(Hilfe gewählt für Button 1!,Info,64)

        elseIF HANDLE&=Button2&

            @messagebox(Hilfe gewählt für Button 2!,Info,64)

        ENDIF

        @SENDMESSAGE(%HWND,$1001,0,0) Usermessage löschen

    ENDIF

wend

Dispose curpos#
 
10/11/04  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.839 Views

Untitledvor 0 min.
H.Brill02/05/22
RudiB.04/18/21
Thomas Freier12/18/13
Frank Vorholzer04/20/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


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