MFC Dialog Box非常好用的函数

Dialog-Box Item Functions

CheckDlgButton

Places a check mark next to or removes a check mark from a button control.

CheckRadioButton

Checks the specified radio button and removes the check mark from all other radio buttons in the specified group of buttons.

ContinueModal

Continues a window's modal status.

DlgDirList

Fills a list box with a file or directory listing.

DlgDirListComboBox

Fills the list box of a combo box with a file or directory listing.

DlgDirSelect

Retrieves the current selection from a list box.

DlgDirSelectComboBox

Retrieves the current selection from the list box of a combo box.

EndModalLoop

Ends a window's modal status.

ExecuteDlgInit

Initiates a dialog resource.

GetCheckedRadioButton

Returns the ID of the currently checked radio button in a group of buttons.

GetScrollBarInfo

Retrieves information about the specified scroll bar.

GetTitleBarInfo

Retrieves information about the specified title bar.

GetMenuBarInfo

Retrieves information about the specified menu bar.

GetDlgItemInt

Translates the text of a control in the given dialog box to an integer value.

GetDlgItemText

Retrieves the caption or text associated with a control.

GetNextDlgGroupItem

Searches for the next (or previous) control within a group of controls.

GetNextDlgTabItem

Retrieves the first control with the WS_TABSTOP style that follows (or precedes) the specified control.

IsDialogMessage

Determines whether the given message is intended for the modeless dialog box and, if so, processes it.

IsDlgButtonChecked

Determines whether a button control is checked.

RunModalLoop

Retrieves, translates, or dispatches messages for a window that is in modal status.

SendDlgItemMessage

Sends a message to the specified control.

SetDlgItemInt

Sets the text of a control to the string that represents an integer value.

SetDlgItemText

Sets the caption or text of a control in the specified dialog box.

SubclassDlgItem

Attaches a Windows control to a CWnd object and makes it route messages through the CWnd's message map.

posted @ 2021-09-17 15:34  快雪  阅读(113)  评论(0)    收藏  举报