13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GetSystemMenuReturn valueCommentsbRevertBOOl Specifies the action to be taken.If bRevert is:zerononzeroDescriptionGetSystemMenu returns a handle to acopy of the System menu currently inuse. This copy is initially identical to theSystem menu, but can be modified.GetSystemMenu destroys the possiblymodified copy of the System menu (ifthere is one) that belongs to the specifiedwindow and returns a handle to theoriginal, unmodified version of theSystem menu.The return value identifies the System menu if bRevert is nonzero and theSystem menu has been modified. If bRevert is nonzero and the Systemmenu has not been modified, the return value is NULL. If bRevert is zero,the return value identifies a copy of the System menu.Any window that does not use the GetSystemMenu function to make itsown copy of the System menu receives the standard System menu.The handle returned by the GetSystemMenu function can be used withthe AppendMenu, InsertMenu or ModifyMenu functions to change theSystem menu. The System menu initially contains items identified withvarious ID values such as SC_ CLOSE, SC_MOVE, and SC_SIZE. Menuitems on the System menu send WM_SYSCOMMAND messages. Allpredefined System-menu items have ID numbers greater than OxFOOO. Ifan application adds commands to the System menu, it should use IDnumbers less than FOOO.Windows automatically grays items on the standard System menu,depending on the situation. The application can carry out its ownchecking or graying by responding to the WM_INITMENU message,which is sent before any menu is displayed.GetSystemMetricsSyntaxint GetSystemMetrics(nIndex)function GetSystemMetrics(Index: Integer): Integer;This function retrieves the system metrics. The system metrics are thewidths and heights of various display elements of the Windows display.The GetSystemMetrics function can also return flags that indicateChapter 4, Functions directory 347

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!