English
Regulars table & Café

CreatePopupMenu.

 


Description:

CreatePopupMenu created one Popupmenü and gives which lever back.




Deklaration:

DEF @CreatePopupMenu(0) !USER32,CreatePopupMenu




Parameter:

These function has no Parameter.



Return Value:

with failure 0, otherwise the lever the begot Popupmenüs.

Examples:

CompileMarkSeparation
Windowstyle 31+512
Windowtitle "Trackmenü mit Checkfunktion über API"
Window 0,0-640,440
DEF @CreatePopupMenu(0) !"USER32","CreatePopupMenu"
DEF @AppendMenuEx(4) !"USER32","AppendMenuA"
DEF @TrackPopupMenu(7) !"USER32","TrackPopupMenu"
DEF @CheckMenuItem(3) !"USER32","CheckMenuItem"
Def @DestroyMenu(1) !"USER32","DestroyMenu"
Declare Checkmerker%
Declare Menuhandle&,ITEM#
Das Menü wird erzeugt
LET Menuhandle&=@CreatePopupMenu()
DIM Item#,255
String Item#,0="&Messagebox"
@AppendMenuEx(Menuhandle&,0,101,ITEM#)
Dispose Item#
DIM Item#,255
String Item#,0="&Check"
@AppendMenuEx(Menuhandle&,0,102,ITEM#)
Dispose item#

While %Menuitem<>-2

    Waitinput

    IF @equ(%MouseKey,2) Rechte Maustaste gedrückt?

        @TrackPopupMenu(Menuhandle&,2,%mousex+5,%Mousey-10,0,%HWND,0) Menü wird angezeigt..

        IF @equ(%MENUITEM,102)

            LET CHECKMERKER%=@NOT(Checkmerker%) Zustandsänderung merken...
            @CheckMenuItem(Menuhandle&,102,@mul(Checkmerker%,8)) Ähnlich wie der Befehl Checkmenü!

        ELSEIF @equ(%MENUITEM,101)

            @Messagebox("Menüpunkt eins geklickt!","Hinweis",64)

        ENDIF

    endif

wend

@DestroyMenu(Menuhandle&) Speicher enable

[keywords:20ad1ea429]
Menu Popupmemü create produce
[/keywords:20ad1ea429]
 
03/06/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.674 Views

Untitledvor 0 min.
H.Brill02/05/22
Torsten Boo05/20/21
holmol9305/10/13
Untitled03/18/12
More...

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