WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
Hard Drive Recovery
Wiring your own LAN
 
Forum
Forum Rules Snippets forum rules

In this forum all the registered users may post their snippets of code they whish to share with the WinAsm Studio community following these basic rules:
* Only snippets of code are accepted in the topics of this forum.
* Discussions, suggestions, requests etc. must be posted in the "Discussions" topic.
* Do not post copyrighted material.
Administrators/moderators may edit, move or delete the entries that do not follow the preceding rules.

 

AppendSysMenu - append a menu item to system menu, use the GetSystemMenu to get a handle to the system menu and AppendMenu to append a menu item.

Jupiter
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 738
Member No.: 773
Joined: 10-November 04


AppendSysMenu

CODE
AppendSysMenu Proto hWndM:HWND, lpMenuName:LPSTR, dMenuID:DWORD, bSep:BYTE
.code
; AppendSysMenu - Appends menu item to system menu
; hWndM - Main HWND
; lpMenuName - menu name string
; dMenuID - ID of created menu item
; bSep - boolean, insert or not sepator before added menu item
; Returns handle of appended/system menu
AppendSysMenu Proc hWndM:HWND, lpMenuName:LPSTR, dMenuID:DWORD, bSep:BYTE
; ### Add Menu item with separator to System Menu
invoke GetSystemMenu, hWndM, 0
;mov hSysMnu, eax
;push eax
push lpMenuName
push dMenuID
push MFT_STRING
push eax
.If bSep==TRUE
�invoke AppendMenu, eax, MFT_SEPARATOR, 0, 0
.EndIf
call AppendMenu
;pop eax
ret
AppendSysMenu EndP


Attached File ( Number of downloads: 108 )
 Login or Register to download

Sponsored Links
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topic

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian