//---------------------------------------------------------------------------------------------- // 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 ); }
void PropertiesDlg::write() { for(int i=0; i<numPages; i++) { // Check HWND of page to see if it has been created const HWND page = PropSheet_IndexToHwnd((HWND)*this, i); if(page != NULL) pages[i]->write(); } }