본문 바로가기

삽질

[WM] Common Dialog Box(공통대화상자) Message

처음 Windows Mobile에서 Common Dialog Box 를 사용하시는 분들이라면 메세지 처리를 한번 보셔야 할 것 같습니다.

당연히 일어나야 할 것 같은 메세지가 일어나지 않는다면 의심해 보세요. 현재 Windows Mobile 에서는 2개의 Common Dialog Box 메세지 만을 제공합니다.

CDM_SETDEFEXT

This message sets the default filename extension for an Explorer-style Open or Save As common dialog box.

CDN_TYPECHANGE

This message is sent by an Explorer-style Open or Save As common dialog box when the user selects a new file type from the file types combo box.


위에는 메세지고 밑에껏은 Notify 메세지 입니다. 둘 다 File Dialog Box에서 쓰이는 군요.

http://msdn.microsoft.com/en-us/library/aa931534.aspx

저는 당연히 Dialog Box 가 초기화 되면 Notify Message가 발생할 줄 알고 잘못된 점이 제 코드 인줄 알고 WTL 소스를 뒤지기 시작하는 가 하면 ( WTL은 Overriding 으로 편하게 File Dialog Message를 처리할 수 있습니다. ) Remote Spy++ 까지 써가면서 관찰했는데 메세지 자체가 안일어 나는 것 같아서 찾아보니 이렇네요.