added amb766 - GetMenuTitle()

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401296
This commit is contained in:
David Anderson
2007-08-09 18:25:00 +00:00
parent 9588414f45
commit 3cd3a0a8d6
2 changed files with 31 additions and 0 deletions
+11
View File
@@ -264,6 +264,17 @@ native Handle:GetMenuStyle(Handle:menu);
*/
native SetMenuTitle(Handle:menu, const String:fmt[], any:...);
/**
* Returns the text of a menu's title.
*
* @param menu Menu Handle.
* @param buffer Buffer to store title.
* @param maxlength Maximum length of the buffer.
* @return Number of bytes written.
* @error Invalid Handle/
*/
native GetMenuTitle(Handle:menu, String:buffer[], maxlength);
/**
* Creates a raw MenuPanel based off the menu's style.
* The Handle must be freed with CloseHandle().