本文整理汇总了C++中PropSheet_Changed函数的典型用法代码示例。如果您正苦于以下问题:C++ PropSheet_Changed函数的具体用法?C++ PropSheet_Changed怎么用?C++ PropSheet_Changed使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PropSheet_Changed函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: RASBlinkProperties_OnCommand
/* This function handles the WM_COMMAND message.
*/
void FASTCALL RASBlinkProperties_OnCommand( HWND hwnd, int id, HWND hwndCtl, UINT codeNotify )
{
switch( id )
{
case IDD_USERNAME:
case IDD_PASSWORD:
if( codeNotify == EN_CHANGE )
PropSheet_Changed( GetParent( hwnd ), hwnd );
break;
case IDD_LIST:
if( codeNotify == CBN_SELCHANGE )
PropSheet_Changed( GetParent( hwnd ), hwnd );
else if( codeNotify == CBN_DROPDOWN && !fRasFill )
{
FillRasConnections( hwnd, IDD_LIST );
fRasFill = TRUE;
}
break;
case IDD_USERAS:{
BOOL fChecked;
fChecked = IsDlgButtonChecked( hwnd, IDD_USERAS );
EnableControl( hwnd, IDD_PAD1, fChecked );
EnableControl( hwnd, IDD_PAD2, fChecked );
EnableControl( hwnd, IDD_PAD3, fChecked );
EnableControl( hwnd, IDD_LIST, fChecked );
EnableControl( hwnd, IDD_USERNAME, fChecked );
EnableControl( hwnd, IDD_PASSWORD, fChecked );
PropSheet_Changed( GetParent( hwnd ), hwnd );
break;
}
}
}
开发者ID:cixonline,项目名称:ameol,代码行数:37,代码来源:blinkman.c
示例2: Options_OnCommand
void Options_OnCommand(HWND hwnd, int id, HWND hwndCtl, UINT /* codeNotify */)
{
switch (id)
{
case IDC_AUTOHIDE:
// First let the property sheet know somethings changed
PropSheet_Changed(GetParent(hwnd), hwnd);
// Now update the picture
if (Button_GetCheck(hwndCtl))
{
ShowWindow(GetDlgItem(hwnd, IDC_APPBAR), SW_HIDE);
}
else
{
ShowWindow(GetDlgItem(hwnd, IDC_APPBAR), SW_SHOW);
}
break;
case IDC_ONTOP:
// First let the property sheet know somethings changed
PropSheet_Changed(GetParent(hwnd), hwnd);
// Now update the picture
if (Button_GetCheck(hwndCtl))
{
ShowWindow(GetDlgItem(hwnd, IDC_WINDOW), SW_HIDE);
}
else
{
ShowWindow(GetDlgItem(hwnd, IDC_WINDOW), SW_SHOW);
}
break;
}
}
开发者ID:Ippei-Murofushi,项目名称:WindowsSDK7-Samples,代码行数:35,代码来源:PropSht.cpp
示例3: UpdateRefreshRateSelection
static VOID
UpdateRefreshRateSelection(PDESKMONITOR This)
{
PDEVMODEW lpCurrentDevMode;
INT i;
if (This->DeskExtInterface != NULL)
{
i = (INT)SendDlgItemMessage(This->hwndDlg,
IDC_REFRESHRATE,
CB_GETCURSEL,
0,
0);
if (i >= 0)
{
lpCurrentDevMode = This->lpSelDevMode;
This->lpSelDevMode = (PDEVMODEW)SendDlgItemMessage(This->hwndDlg,
IDC_REFRESHRATE,
CB_GETITEMDATA,
(WPARAM)i,
0);
if (This->lpSelDevMode != NULL && This->lpSelDevMode != lpCurrentDevMode)
{
This->DeskExtInterface->SetCurrentMode(This->DeskExtInterface->Context,
This->lpSelDevMode);
UpdateRefreshFrequencyList(This);
(void)PropSheet_Changed(GetParent(This->hwndDlg),
This->hwndDlg);
}
}
}
}
开发者ID:GYGit,项目名称:reactos,代码行数:35,代码来源:deskmon.c
示例4: HibernateDlgProc
/* Property page dialog callback */
INT_PTR CALLBACK
HibernateDlgProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
switch(uMsg)
{
case WM_INITDIALOG:
Hib_InitDialog(hwndDlg);
return TRUE;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_HIBERNATEFILE:
if (HIWORD(wParam) == BN_CLICKED)
{
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
}
}
break;
case WM_NOTIFY:
{
LPNMHDR lpnm = (LPNMHDR)lParam;
if (lpnm->code == (UINT)PSN_APPLY)
{
return Hib_SaveData(hwndDlg);
}
}
}
return FALSE;
}
开发者ID:HBelusca,项目名称:NasuTek-Odyssey,代码行数:33,代码来源:hibernate.c
示例5: LptPortOnCommand
void
LptPortOnCommand(
HWND ParentHwnd,
int ControlId,
HWND ControlHwnd,
UINT NotifyCode
)
{
UNREFERENCED_PARAMETER(ControlHwnd);
if (NotifyCode == CBN_SELCHANGE) {
PropSheet_Changed(GetParent(ParentHwnd), ParentHwnd);
}
else {
switch (ControlId) {
//
// Because this is a prop sheet, we should never get this.
// All notifications for ctrols outside of the sheet come through
// WM_NOTIFY
//
case IDOK:
case IDCANCEL:
EndDialog(ParentHwnd, 0);
return;
}
}
} // LptPortOnCommand
开发者ID:kcrazy,项目名称:winekit,代码行数:27,代码来源:pp_lpt.c
示例6: VerifyUnattendLCID
DWORD
VerifyUnattendLCID(HWND hwndDlg)
{
LRESULT lCount, lIndex, lResult;
lCount = SendMessage(hList, CB_GETCOUNT, (WPARAM)0, (LPARAM)0);
if (lCount == CB_ERR)
{
return 0;
}
for (lIndex = 0; lIndex < lCount; lIndex++)
{
lResult = SendMessage(hList, CB_GETITEMDATA, (WPARAM)lIndex, (LPARAM)0);
if (lResult == CB_ERR)
{
continue;
}
if (lResult == (LRESULT)UnattendLCID)
{
SendMessage(hList, CB_SETCURSEL, (WPARAM)lIndex, (LPARAM)0);
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
return 1;
}
}
return 0;
}
开发者ID:HBelusca,项目名称:NasuTek-Odyssey,代码行数:29,代码来源:generalp.c
示例7: GetParent
//----------------------------------------------------------------------------------------------
// ApplyChangedSetting
//----------------------------------------------------------------------------------------------
VOID CControllerPage::ApplyChangedSetting()
{
// 変数宣言
HWND Dialog = GetParent( Wnd );
// 設定を反映する
ApplySetting();
// 各ページに設定を反映する
for( LONG Index = 1; Index < 7; Index ++ )
{
HWND Page = PropSheet_IndexToHwnd( Dialog, Index );
if( Page != NULL )
{
SendMessage(
Page
,WM_SETTING_LIST_CHANGED
,NULL
,NULL );
}
}
// プロパティ シートに変更を通知する
PropSheet_Changed( Dialog, Wnd );
}
开发者ID:MasashiWada,项目名称:Xbox360-Controller-Driver,代码行数:28,代码来源:controller_page.cpp
示例8: ListViewItemChanged
static VOID
ListViewItemChanged(HWND hwndDlg, PDATA pData, int itemIndex)
{
BackgroundItem *backgroundItem = NULL;
pData->backgroundSelection = itemIndex;
backgroundItem = &pData->backgroundItems[pData->backgroundSelection];
if (pData->pWallpaperBitmap != NULL)
{
DibFreeImage(pData->pWallpaperBitmap);
pData->pWallpaperBitmap = NULL;
}
if (backgroundItem->bWallpaper == TRUE)
{
pData->pWallpaperBitmap = DibLoadImage(backgroundItem->szFilename);
if (pData->pWallpaperBitmap == NULL)
return;
}
pData->bWallpaperChanged = TRUE;
InvalidateRect(GetDlgItem(hwndDlg, IDC_BACKGROUND_PREVIEW),
NULL, TRUE);
EnableWindow(GetDlgItem(hwndDlg, IDC_PLACEMENT_COMBO),
backgroundItem->bWallpaper);
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
}
开发者ID:RPG-7,项目名称:reactos,代码行数:32,代码来源:background.c
示例9: UpdatePruningSelection
static VOID
UpdatePruningSelection(PDESKMONITOR This)
{
BOOL bPruningOn;
if (This->DeskExtInterface != NULL && This->bModesPruned && !This->bKeyIsReadOnly)
{
bPruningOn = IsDlgButtonChecked(This->hwndDlg,
IDC_PRUNINGCHECK) != BST_UNCHECKED;
if (bPruningOn != This->bPruningOn)
{
/* Tell desk.cpl to turn on/off pruning mode */
This->bPruningOn = bPruningOn;
This->DeskExtInterface->SetPruningMode(This->DeskExtInterface->Context,
bPruningOn);
/* Fill the refresh rate combobox again, we now receive a filtered
or unfiltered device mode list from desk.cpl (depending on whether
pruning is active or not) */
UpdateRefreshFrequencyList(This);
(void)PropSheet_Changed(GetParent(This->hwndDlg),
This->hwndDlg);
}
}
}
开发者ID:GYGit,项目名称:reactos,代码行数:27,代码来源:deskmon.c
示例10: OnColorButton
static VOID
OnColorButton(HWND hwndDlg, PDATA pData)
{
/* Load custom colors from Registry */
HKEY hKey = NULL;
LONG res = ERROR_SUCCESS;
CHOOSECOLOR cc;
res = RegCreateKeyEx(HKEY_CURRENT_USER, TEXT("Control Panel\\Appearance"), 0, NULL, 0,
KEY_ALL_ACCESS, NULL, &hKey, NULL);
/* Now the key is either created or opened existing, if res == ERROR_SUCCESS */
if (res == ERROR_SUCCESS)
{
/* Key opened */
DWORD dwType = REG_BINARY;
DWORD cbData = sizeof(pData->custom_colors);
res = RegQueryValueEx(hKey, TEXT("CustomColors"), NULL, &dwType,
(LPBYTE)pData->custom_colors, &cbData);
RegCloseKey(hKey);
hKey = NULL;
}
/* Launch ChooseColor() dialog */
cc.lStructSize = sizeof(CHOOSECOLOR);
cc.hwndOwner = hwndDlg;
cc.hInstance = NULL;
cc.rgbResult = g_GlobalData.desktop_color;
cc.lpCustColors = pData->custom_colors;
cc.Flags = CC_ANYCOLOR | /* Causes the dialog box to display all available colors in the set of basic colors. */
CC_FULLOPEN | /* opens dialog in full size */
CC_RGBINIT ; /* init chosen color by rgbResult value */
cc.lCustData = 0;
cc.lpfnHook = NULL;
cc.lpTemplateName = NULL;
if (ChooseColor(&cc))
{
/* Save selected color to var */
g_GlobalData.desktop_color = cc.rgbResult;
pData->bClrBackgroundChanged = TRUE;
/* Apply button will be activated */
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
/* Window will be updated :) */
InvalidateRect(GetDlgItem(hwndDlg, IDC_BACKGROUND_PREVIEW), NULL, TRUE);
/* Save custom colors to reg. To this moment key must be created already. See above */
res = RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Control Panel\\Appearance"), 0,
KEY_WRITE, &hKey);
if (res == ERROR_SUCCESS)
{
/* Key opened */
RegSetValueEx(hKey, TEXT("CustomColors"), 0, REG_BINARY,
(const BYTE *)pData->custom_colors, sizeof(pData->custom_colors));
RegCloseKey(hKey);
hKey = NULL;
}
}
}
开发者ID:RPG-7,项目名称:reactos,代码行数:60,代码来源:background.c
示例11: PropSheet_Changed
void CDialogTrustDB::NotifySheetOfChange()
//
// Inform our sheet that something on this page has changed
//
{
HWND hwndSheet = ::GetParent(GetWindow());
PropSheet_Changed(hwndSheet, GetWindow());
}
开发者ID:mingpen,项目名称:OpenNT,代码行数:8,代码来源:person~2.cpp
示例12: AdvancedDlgProc
/* Property page dialog callback */
INT_PTR CALLBACK
AdvancedDlgProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
switch(uMsg)
{
case WM_INITDIALOG:
hAdv = hwndDlg;
Adv_InitDialog();
return TRUE;
break;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_SYSTRAYBATTERYMETER:
case IDC_PASSWORDLOGON:
case IDC_VIDEODIMDISPLAY:
if (HIWORD(wParam) == BN_CLICKED)
{
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
}
break;
case IDC_LIDCLOSE:
case IDC_POWERBUTTON:
case IDC_SLEEPBUTTON:
if (HIWORD(wParam) == CBN_SELCHANGE)
{
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
}
break;
}
break;
case WM_NOTIFY:
{
LPNMHDR lpnm = (LPNMHDR)lParam;
if (lpnm->code == (UINT)PSN_APPLY)
{
Adv_SaveData(hwndDlg);
}
return TRUE;
}
}
return FALSE;
}
开发者ID:hoangduit,项目名称:reactos,代码行数:47,代码来源:advanced.c
示例13: Port_OnRestorePortClicked
void
Port_OnRestorePortClicked(
HWND DialogHwnd,
PPORT_PARAMS Params
)
{
RestorePortSettings(DialogHwnd, Params);
PropSheet_Changed(GetParent(DialogHwnd), DialogHwnd);
}
开发者ID:kcrazy,项目名称:winekit,代码行数:9,代码来源:pp.c
示例14: AdvGeneralPageProc
INT_PTR CALLBACK
AdvGeneralPageProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
PDISPLAY_DEVICE_ENTRY DispDevice = NULL;
INT_PTR Ret = 0;
if (uMsg != WM_INITDIALOG)
DispDevice = (PDISPLAY_DEVICE_ENTRY)GetWindowLongPtr(hwndDlg, DWLP_USER);
switch (uMsg)
{
case WM_INITDIALOG:
DispDevice = (PDISPLAY_DEVICE_ENTRY)(((LPPROPSHEETPAGE)lParam)->lParam);
SetWindowLongPtr(hwndDlg, DWLP_USER, (LONG_PTR)DispDevice);
InitFontSizeList(hwndDlg);
InitRadioButtons(hwndDlg);
Ret = TRUE;
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDC_FONTSIZE_COMBO:
if (HIWORD(wParam) == CBN_SELCHANGE)
{
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
}
break;
case IDC_RESTART_RB:
case IDC_WITHOUTREBOOT_RB:
case IDC_ASKME_RB:
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
break;
}
break;
}
return Ret;
}
开发者ID:HBelusca,项目名称:NasuTek-Odyssey,代码行数:43,代码来源:general.c
示例15: PropSheet_UnChanged
void OptionsPageMore::updateHasChanged()
{
if (m_oldSettings == m_newSettings)
{
PropSheet_UnChanged(GetParent(m_hwnd), m_hwnd);
}
else {
PropSheet_Changed(GetParent(m_hwnd), m_hwnd);
}
}
开发者ID:troiganto,项目名称:autosave,代码行数:10,代码来源:OptionsPageMore.cpp
示例16: CheckEnableApply
static void CheckEnableApply()
{
BOOL bEnable = FALSE;
bEnable = (bFsRunning != bFsOn) || (bDbRunning != bDbOn) || (bBakRunning != bBakOn) ||
(bScsRunning != bScsOn) || (bSccRunning != bSccOn);
if (bEnable)
PropSheet_Changed(GetParent(hDlg), hDlg);
else
PropSheet_UnChanged(GetParent(hDlg), hDlg);
}
开发者ID:maxendpoint,项目名称:openafs_cvs,代码行数:12,代码来源:services_page.cpp
示例17: AdvancedSettingsPageProc
static INT_PTR CALLBACK
AdvancedSettingsPageProc(HWND hwndDlg,
UINT uMsg,
WPARAM wParam,
LPARAM lParam)
{
switch (uMsg)
{
case WM_INITDIALOG:
CheckDlgButton(hwndDlg, IDC_TASKBARPROP_SECONDS, AdvancedSettings.bShowSeconds ? BST_CHECKED : BST_UNCHECKED);
break;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDC_TASKBARPROP_SECONDS:
if (HIWORD(wParam) == BN_CLICKED)
{
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
}
break;
}
break;
case WM_NOTIFY:
{
LPNMHDR pnmh = (LPNMHDR)lParam;
switch (pnmh->code)
{
case PSN_SETACTIVE:
break;
case PSN_APPLY:
AdvancedSettings.bShowSeconds = IsDlgButtonChecked(hwndDlg, IDC_TASKBARPROP_SECONDS);
SaveSettingDword(szAdvancedSettingsKey, TEXT("ShowSeconds"), AdvancedSettings.bShowSeconds);
break;
}
break;
}
case WM_DESTROY:
break;
default:
return FALSE;
}
return FALSE;
}
开发者ID:Nevermore2015,项目名称:reactos,代码行数:51,代码来源:trayprop.c
示例18: switch
int DesktopSettingsDlg::Command(int id, int code)
{
switch(id) {
case ID_DESKTOP_VERSION:
SendMessage(g_Globals._hwndShellView, PM_DISPLAY_VERSION, 0, MAKELONG(0,1)); // toggle version display flag
PropSheet_Changed(GetParent(_hwnd), _hwnd);
break;
default:
return 1;
}
return 0;
}
开发者ID:svn2github,项目名称:ros-explorer,代码行数:14,代码来源:settings.cpp
示例19: ViewDlg_OnTreeViewKeyDown
static void
ViewDlg_OnTreeViewKeyDown(HWND hwndDlg, TV_KEYDOWN *KeyDown)
{
HWND hwndTreeView = GetDlgItem(hwndDlg, IDC_VIEW_TREEVIEW);
if (KeyDown->wVKey == VK_SPACE)
{
// [Space] key was pressed
HTREEITEM hItem = TreeView_GetSelection(hwndTreeView);
if (ViewDlg_ToggleCheckItem(hwndDlg, hItem))
{
PropSheet_Changed(GetParent(hwndDlg), hwndDlg);
}
}
}
开发者ID:Moteesh,项目名称:reactos,代码行数:15,代码来源:view.cpp
示例20: switch
INT_PTR SettingsTab::DialogProc(
HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) {
switch (uMsg) {
case WM_INITDIALOG:
_dlgHwnd = hwndDlg;
Initialize();
LoadSettings();
return FALSE;
case WM_COMMAND:
PropSheet_Changed(GetParent(hwndDlg), NULL);
break;
}
return Dialog::DialogProc(hwndDlg, uMsg, wParam, lParam);
}
开发者ID:rusith,项目名称:3RVX,代码行数:17,代码来源:SettingsTab.cpp
注:本文中的PropSheet_Changed函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论