디시인사이드 갤러리

갤러리 이슈박스, 최근방문 갤러리

갤러리 본문 영역

여기까지 해석하는데 2시간 걸렸다.

천재플머(121.139) 2010.08.10 08:55:54
조회 168 추천 0 댓글 5



Dialog Box Programming Considerations

--------------------------------------------------------------------------------
This overview discusses some programming considerations concerning dialog boxes.
The overview includes the following topics.

Dialog Box Procedures
Dialog Box Keyboard Interface
Dialog Box Settings
Custom Dialog Boxes
Dialog Box Procedures

A dialog box procedure is similar to a window procedure in that the system sends messages to the procedure when it has information to give or tasks to carry out. Unlike a window procedure, a dialog box procedure never calls the DefWindowProc function. Instead, it returns TRUE if it processes a message or FALSE if it does not.

Every dialog box procedure has the following form:

Show Example

BOOL CALLBACK DlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM lParam)
{
    switch (message)
    {
 
        // Place message cases here.
 
        default:
            return FALSE;
    }
}
The procedure parameters serve the same purpose as in a window procedure, with the hwndDlg parameter receiving the window handle of the dialog box.

Most dialog box procedures process the WM_INITDIALOG message and the WM_COMMAND messages sent by the controls, but process few if any other messages. If a dialog box procedure does not process a message, it must return FALSE to direct the system to process the messages internally. The only exception to this rule is the WM_INITDIALOG message. The dialog box procedure must return TRUE to direct the system to further process the WM_INITDIALOG message. In any case, the procedure must not call DefWindowProc.

The WM_INITDIALOG Message
The WM_COMMAND Message
The WM_PARENTNOTIFY Message
Control-Color Messages
Dialog Box Default Message Processing
The WM_INITDIALOG Message

The system does not send a WM_CREATE message to the dialog box procedure. Instead, it sends a WM_INITDIALOG message when it creates the dialog box and all its controls but before it displays the dialog box. The procedure should carry out any initialization required to ensure that the dialog box displays the current settings associated with the task. For example, when a dialog box contains a control to show the current drive and directory, the procedure must determine the current drive and directory and set the control to that value.

The procedure can initialize controls by using functions such as SetDlgItemText and CheckDlgButton. Because controls are windows, the procedure can also manipulate them by using window-management functions such as EnableWindow and SetFocus. The procedure can retrieve the window handle to a control by using the GetDlgItem function.

The dialog box procedure can change the contents, state, and position of any control as needed. For example, in a dialog box that contains a list box of filenames and an Open button, the procedure can disable the Open button until the user selects a file from the list. In this example, the dialog box template specifies the WS_DISABLED style for the Open button and the system automatically disables the button when creating it. When the dialog box procedure receives a notification message from the list box indicating that the user has selected a file, the procedure calls the EnableWindow function to enable the Open button.

To display a custom icon on the caption bar of the dialog box, your WM_INITDIALOG handler can send the WM_SETICON message to the dialog box.

If the application creates the dialog box by using one of the functions DialogBoxParam, DialogBoxIndirectParam, CreateDialogParam, or CreateDialogIndirectParam, the lParam parameter for the WM_INITDIALOG message contains the extra parameter passed to the function. Applications typically use this extra parameter to pass a pointer to additional initialization information to the dialog box procedure, but the dialog box procedure must determine the meaning of the parameter. If the application uses another function to create the dialog box, the system sets the lParam parameter to NULL.

Before returning from the WM_INITDIALOG message, the procedure should determine whether it should set the input focus to a specified control. If the dialog box procedure returns TRUE, the system automatically sets the input focus to the control whose window handle is in the wParam parameter. If the control receiving the default focus is not appropriate, it can set the focus to the appropriate control by using the SetFocus function. If the procedure sets the input focus, it must return FALSE to prevent the system from setting the default focus. The control receiving the default input focus is always the first control specified in the template that is visible, not disabled, and has the WS_TABSTOP style. If no such control exists, the system sets the default input focus to the first control in the template.



처음엔 그냥 볼 엄두가 나지 않을 정도로 울렁거렸었는데...
막상 차분히 살펴보니, 조금만 더 울렁증에 의한 난독증을 극복하면 식은죽 먹기가 되겠군.

다음 번 목표는 해석에 1시간이다!!!



자주 반복해서 쓰일 것 같은 표현

following : 다음과 같은~

carry out : 수행하다.

does not : ~하지 않다.

should : ~해야

must : ~하지 않으면 안된다.

manipulate : 다루다.

retrieve : 획득하다.

specifies : 지정하다.

determine : 확인하다.

appropriate : 적합한

추천 비추천

0

고정닉 0

0

원본 첨부파일 1

댓글 영역

전체 댓글 0
등록순정렬 기준선택
본문 보기

하단 갤러리 리스트 영역

왼쪽 컨텐츠 영역

갤러리 리스트 영역

갤러리 리스트
번호 제목 글쓴이 작성일 조회 추천
설문 어떤 상황이 닥쳐도 지갑 절대 안 열 것 같은 스타는? 운영자 24/05/20 - -
213885 가장간단하게 JAVA로 그래픽 프로그램 만드는법이 머야? [1] 자바늅E(218.154) 10.10.23 85 0
213882 프로그래밍이란.. [1] 꼴깝 two(220.94) 10.10.23 27 0
213881 fgetc 함수 질문좀.. [1] (125.190) 10.10.23 51 0
213879 한국계 미국인 그룹이 빌보드 1위했다네... [1] korean(124.153) 10.10.23 79 0
213878 주말에 할꺼 없는 횽들을 위한 영화추천 [1] 시크한훈남갤로그로 이동합니다. 10.10.23 104 0
213876 자바뉴빈데 콘솔말고 그래픽 프로그램 어떻게 만듬? [1] 자바늅E(218.154) 10.10.23 61 0
213875 질문욥 [3] 으헤헤(116.123) 10.10.23 56 0
213873 정말 프로그램밍 잘짜는 사람들이란? [6] ssonacy갤로그로 이동합니다. 10.10.23 256 0
213872 앱인벤터 써본사람 [1] 좆터치매매갤로그로 이동합니다. 10.10.23 79 0
213871 형들 29살에 신입으로 취업하면 개막장임 ㅠㅠ? [3] 늅늅(112.171) 10.10.23 348 0
213869 형들 한글이 안써지는데 자비좀 [2] ㄱㄷㅅ(121.183) 10.10.23 67 0
213868 윈도우즈 api에서 웹사이트 하나 불러오려고하는데 [2] 자리비움갤로그로 이동합니다. 10.10.23 55 0
213867 세그맨테이션 에러나는데 어디가 문제인지좀 봐줘 ㅠㅠ [14] 1(125.190) 10.10.23 85 0
213866 인서울 컴공 인정받는 순으로 하면 어떻게 됨? [4] 금호족기(61.75) 10.10.23 265 0
213865 온라인게임상에서 물리는 서버에서 처리할까? [2] ㅡㅡ(116.36) 10.10.23 102 0
213864 숫자 자리수 구하는 소스 [2] cyluss갤로그로 이동합니다. 10.10.23 104 0
213862 보신탕 벙개 한번 하자!! [12] Rhea갤로그로 이동합니다. 10.10.23 213 0
213861 진심으로 내 마음을 후벼파는 따끔한 충고... [6] 꼴깝(121.139) 10.10.23 224 0
213859 형들 아까 자릿수 구하는 문제인데 제발 도와주세요 ㅜㅜㅜ [3] 카카오(116.37) 10.10.23 79 0
213856 개발자로서 성공하는 방법 [2] 개쉛기갤로그로 이동합니다. 10.10.23 193 0
213854 혹시 공비 프갤 매크로임 ? [1] ㅇㅇ(183.101) 10.10.23 236 0
213853 개발자로 성공하는 길 [6] cyluss갤로그로 이동합니다. 10.10.23 143 0
213852 아 십라 보신탕 먹고 싶다! [5] prismatic갤로그로 이동합니다. 10.10.23 79 0
213850 형들 자릿수 구하는건데.. 좀 도와주세요.......ㅜㅜㅜㅜ [3] 카카오(116.37) 10.10.23 125 0
213849 오빠들 여자 봐라 물속의다이아갤로그로 이동합니다. 10.10.23 74 0
213848 그리디 동전 문제 질문드려요 답해주세요 제발 ㅠㅠ ㅇㄴㅍ.갤로그로 이동합니다. 10.10.23 55 0
213847 주말에 다들 뭐함? [2] 하앍(112.149) 10.10.23 62 0
213846 [늅늅이 필독] 프로그래머의 진로에 대해 설명해 주겠다. [4] 꼴깝(121.139) 10.10.23 238 0
213844 프로그래밍이 무엇인지 간단하게 설명을 해주겠다. [6] 꼴깝(121.139) 10.10.23 185 0
213843 rntjr 형 한번만 더 부탁드려용 ㅜㅜㅜ [4] 카카오(116.37) 10.10.23 92 0
213842 카카오는 봅니다. [4] rntjr갤로그로 이동합니다. 10.10.23 146 0
213840 니들 왜 자꾸 '오빠들' 까냐?? [2] rntjr갤로그로 이동합니다. 10.10.23 158 0
213839 형님들 자바 기초적인문제인데.. 제발 도와주세요 .. 부탁드립니다. [6] 카카오(116.37) 10.10.23 66 0
213838 프로그래밍은 단순 반복 작업을 몸에 익히는 노가다가 아니다. [2] 꼴깝(121.139) 10.10.23 130 0
213837 형님들 자바 기초적인 질문입니다... 2시간째 헤딩하고 있어요... [3] 카카오(116.37) 10.10.23 80 0
213836 프로그래머횽들중에 오라클 하는횽들있나요? 프프치치(119.198) 10.10.23 60 0
213834 제대로 잘 넣었는데 자꾸 클래스를 찾을수가 없대 ㅠㅠ [2] 오빠들ㅠㅠ(124.199) 10.10.23 134 0
213833 오브젝티브씨 메모리관리 질문이요,, 젭알,, [1] 잉뉴(211.183) 10.10.23 80 0
213832 c언어 질문 [6] chobo(211.253) 10.10.23 93 0
213831 충격적인 이야기를 들었는데 [2] Vita500갤로그로 이동합니다. 10.10.23 144 0
213830 너네 연봉얼마나 되냐 ㅋㅋㅋㅋ [3] 코딩유일신(124.54) 10.10.23 329 0
213829 횽들 클박csi 이거 고장났는데!? 아우ㅠㅠ(123.109) 10.10.23 89 0
213828 아..개심심하다... [4] 넉넉한터갤로그로 이동합니다. 10.10.23 171 0
213827 음..재귀함수 관련 문제인데 도와주세요 [6] ss(180.64) 10.10.23 125 0
213825 이러면 존나 억울하지 않냐? [6] ㅇㅇ(168.131) 10.10.23 128 0
213824 물속의다이아는 봄.니.다. [2] 물속의다이아갤로그로 이동합니다. 10.10.23 100 0
213823 미안해 갈께 미안해... [2] 오빠들ㅠㅠ(124.199) 10.10.23 119 0
213822 아래 인턴하는 오빠라고 주장하는 애는 봄.니.다. [7] 물속의다이아갤로그로 이동합니다. 10.10.23 225 0
213818 SVN 괜찮네.. [3] 넉넉한터갤로그로 이동합니다. 10.10.23 116 0
213817 ebs황당하구만 이모군(1.225) 10.10.23 89 0
갤러리 내부 검색
제목+내용게시물 정렬 옵션

오른쪽 컨텐츠 영역

실시간 베스트

1/8

뉴스

디시미디어

디시이슈

1/2