GME  13
SearchPpg.cpp
Go to the documentation of this file.
00001 // SearchPpg.cpp : Implementation of the CSearchPropPage property page class.
00002 
00003 #include "stdafx.h"
00004 #include "Search.h"
00005 #include "SearchPpg.h"
00006 
00007 #ifdef _DEBUG
00008 #define new DEBUG_NEW
00009 #undef THIS_FILE
00010 static char THIS_FILE[] = __FILE__;
00011 #endif
00012 
00013 
00014 IMPLEMENT_DYNCREATE(CSearchPropPage, COlePropertyPage)
00015 
00016 
00017 
00018 // Message map
00019 
00020 BEGIN_MESSAGE_MAP(CSearchPropPage, COlePropertyPage)
00021         //{{AFX_MSG_MAP(CSearchPropPage)
00022         // NOTE - ClassWizard will add and remove message map entries
00023         //    DO NOT EDIT what you see in these blocks of generated code !
00024         //}}AFX_MSG_MAP
00025 END_MESSAGE_MAP()
00026 
00027 
00029 // Initialize class factory and guid
00030 
00031 IMPLEMENT_OLECREATE_EX(CSearchPropPage, "GME.SearchPropPage.1",
00032         0xf299943a, 0x2397, 0x45b1, 0x8c, 0x77, 0xa9, 0xd2, 0x9f, 0x2f, 0xe5, 0x8e)
00033 
00034 
00036 // CSearchPropPage::CSearchPropPageFactory::UpdateRegistry -
00037 // Adds or removes system registry entries for CSearchPropPage
00038 
00039 BOOL CSearchPropPage::CSearchPropPageFactory::UpdateRegistry(BOOL bRegister)
00040 {
00041         if (bRegister)
00042                 return AfxOleRegisterPropertyPageClass(AfxGetInstanceHandle(),
00043                         m_clsid, IDS_SEARCH_PPG);
00044         else
00045                 return AfxOleUnregisterClass(m_clsid, NULL);
00046 }
00047 
00048 
00050 // CSearchPropPage::CSearchPropPage - Constructor
00051 
00052 CSearchPropPage::CSearchPropPage() :
00053         COlePropertyPage(IDD, IDS_SEARCH_PPG_CAPTION)
00054 {
00055         //{{AFX_DATA_INIT(CSearchPropPage)
00056         // NOTE: ClassWizard will add member initialization here
00057         //    DO NOT EDIT what you see in these blocks of generated code !
00058         //}}AFX_DATA_INIT
00059 }
00060 
00061 
00063 // CSearchPropPage::DoDataExchange - Moves data between page and properties
00064 
00065 void CSearchPropPage::DoDataExchange(CDataExchange* pDX)
00066 {
00067         //{{AFX_DATA_MAP(CSearchPropPage)
00068         // NOTE: ClassWizard will add DDP, DDX, and DDV calls here
00069         //    DO NOT EDIT what you see in these blocks of generated code !
00070         //}}AFX_DATA_MAP
00071         DDP_PostProcessing(pDX);
00072 }
00073 
00074 
00076 // CSearchPropPage message handlers