my codes are simple but I could not figure out about how to code this part(/**/)
-------------------------------------------------------------------------------------------------
WndProc proc hWin:HWND,uMsg:UINT,wParam:WPARAM,lParam:LPARAM
LOCAL szURL[64]:DWORD
LOCAL szDropFileName[258]:BYTE

mov eax,uMsg
.if eax==WM_INITDIALOG
push hWin
pop hWnd
.elseif eax==WM_COMMAND
mov eax,wParam
and eax,0FFFFh
.if eax==IDC_BTN2
invoke SendMessage,hWin,WM_CLOSE,0,0
.elseif eax==IDC_BTN5
invoke MultiByteToWideChar,NULL,NULL,addr URL_Hpage,64,addr szURL,64
invoke HlinkNavigateString,NULL,addr szURL
.elseif eax==IDC_BTN1
.endif
/*
.elseif eax==WM_NOTIFY
mov? ?  ebx, lParam? ? ; Get pointer to NMHDR
? ? ? ? mov? ?  eax, .NMHDR.code
? ? ? ? .if eax==EN_DROPFILES? ? ? ? ? ? ? ? 
invoke DragQueryFile,wParam,0,ADDR szDropFileName,sizeof szDropFileName
invoke SetDlgItemText,hWin,IDC_STC1,addr MSG_DROPFILE
.endif
*/
.elseif eax==WM_TIMER
mov eax,wParam
and eax,0FFFFh
.if eax==IDC_TIMER1
.elseif eax==IDC_TIMER2
.endif
.elseif eax==WM_CLOSE
invoke DestroyWindow,hWin
.elseif uMsg==WM_DESTROY
invoke PostQuitMessage,NULL
.else
invoke DefWindowProc,hWin,uMsg,wParam,lParam
ret
.endif
xor? ? eax,eax
ret

WndProc endp

------------------------------------------------------------------------------------------------

my task is
to open a dropped file? by? WM_NOTIFY + WM_DROPFILES.

even though I saw a couple of time sampe codes that related to the WM_DROPFILES, I failed to code better one.

would you point out causes?
Posted on 2006-02-17 23:48:49 by dongmin