note
잡다한 정보들(기타정보)
2008. 5. 20. 01:21
PropertySheet 에서의 OK시 조건 확인후 다이얼로그를 닫기 위해
# PropertySheet 에서 OnApply 로 해서 검사후 OK 를 부른다.
void CPage1::OnButton1()
{
OnOK();
((CPropertySheet *)GetParent())->EndDialog(IDOK);
}
OnApply() 에서 EndDialog(IDOK)를 불러서 해결~
조건 안맞으면 return false
LPSTR = long pointer string = char *
LPCSTR = long pointer constant string = const char *
LPCTSTR = long pointer constant t_string = const tchar *
LPWSTR = long pointer wide string = w_char *
LPCWSTR = long pointer constant wide string = const w_char *
#PropertySheet
http://www.codeguru.com/Cpp/controls/propertysheet/article.php/c3973/