반응형 분류 전체보기4833 Notify Handling in ATL Dialog (Standard Control) Notify Handling in ATL Dialog (Standard Control) [출처] Notify Handling in ATL Dialog (Standard Control)|작성자 삐삐러브 SUMMARY 윈도우즈는 메시지 기반의 시스템이다. 모든 하위 윈도우를 제어할 때에는 해당 윈도우에 고유의 메시지들을 전달하여 처리한다. 하위 윈도우에서 부모 윈도우로 정보를 전달하는 방법도 메시지를 이용하는데, 이 경우에는 특별히 통지 메시지 (Notification Message)라고 부른다. 이 문서에서는 ATL 다이얼로그에서 하위 윈도우(표준 콘트롤)에서 보내는 통지 메시지를 부모 윈도우 (다이얼로그)에서 받아서 처리하는 방법에 대해 설명한다. FUNDAMENTALS MFC와 유사하게 ATL에서도 메.. 2010. 5. 27. vector 을 이용하여 combox 에 AddString 하기 vector 을 이용하여 combox 에 AddString 하기 1 std::vector STL_AcceptSort; // vector 자료형으로 선언 2 std::vector::const_iterator iter; // 반복자 생성 3 4 STL_AcceptSort.push_back("접수순서1"); // push_back로 맨뒤로 문자열 원소 추가함. 5 STL_AcceptSort.push_back("접수순서2"); 6 STL_AcceptSort.push_back("접수순서3"); 7 8 for(iter = STL_AcceptSort.begin(); iter != STL_AcceptSort.end(); ++iter) //탐색시작~ 9 { 10 m_cmbAcceptSort.AddString( (LPCS.. 2010. 5. 27. c++ atoi 로 문자를 숫자형으로 변환 컨버트하기 Converts a given string to an integer. 문자를 숫자형으로 컨버트하여 준다. atoi Converts a given string to an integer. int WINAPI atoi( const TCHAR *sz); Parameters sz Source character string. Return Values Returns the string's integer value. Remarks This version of atoi supports only decimal digits, and does not allow leading white space or signs. It supports both Unicode and ANSI strings. Other versions can v.. 2010. 5. 27. _T( ) 매크로 펌 : http://binyjini.tistory.com/entry/T-매크로-정리 보통 프로그래밍을 할 때 _T("") 매크로를 사용하면서도 그냥 컴파일 에러가 나면 한번 써보고 에러 안나면 오케이 하고선 그냥 넘어가는 경우가 있을지도 모른다는 생각에 간단히 정리합니다. 우리가 보통 유니코드 문자열을 처리할 때 L"this is a literal string" 과 같이 하는데요, _T 매크로를 사용하게 되면 프로젝트 세팅에 유니코드가 정의되어 있으면 유니코드 문자열로 컴파일 하고 그렇지 않으면 ANSI문자열(MBCS 포함)로 컴파일 됩니다. 아래는 간단한 예 입니다. pWnd->SetWindowText( "Hello" ); 이 코드 대신에 다음 코드가 사용됩니다. pWnd->SetWindowText( .. 2010. 5. 26. 이전 1 ··· 1076 1077 1078 1079 1080 1081 1082 ··· 1209 다음 반응형