本文整理汇总了C++中PropSheet_Changed函数的典型用法代码示例。如果您正苦于以下问题:C++ PropSheet_Changed函数的具体用法?C++ PropSheet_Changed怎么用?C++ PropSheet_Changed使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PropSheet_Changed函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
}
}
示例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;
}
}
示例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);
}
}
}
}
示例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;
}
示例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
示例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;
}
示例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 );
}
示例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);
}
示例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);
}
}
}
示例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;
}
}
}
示例11: PropSheet_Changed
void CDialogTrustDB::NotifySheetOfChange()
//
// Inform our sheet that something on this page has changed
//
{
HWND hwndSheet = ::GetParent(GetWindow());
PropSheet_Changed(hwndSheet, GetWindow());
}
示例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;
}
示例13: Port_OnRestorePortClicked
void
Port_OnRestorePortClicked(
HWND DialogHwnd,
PPORT_PARAMS Params
)
{
RestorePortSettings(DialogHwnd, Params);
PropSheet_Changed(GetParent(DialogHwnd), DialogHwnd);
}
示例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;
}
示例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);
}
}