Click here to Skip to main content
16,011,120 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC CFrameWnd setting always-on-top Pin
_rubinho_6-Jul-04 22:32
_rubinho_6-Jul-04 22:32 
Questionhow can I catch WM_DROPFILES from a list view control's in api win32 Pin
youpiyoyo6-Jul-04 5:47
youpiyoyo6-Jul-04 5:47 
AnswerRe: how can I catch WM_DROPFILES from a list view control's in api win32 Pin
palbano6-Jul-04 6:07
palbano6-Jul-04 6:07 
GeneralRe: how can I catch WM_DROPFILES from a list view control's in api win32 Pin
youpiyoyo6-Jul-04 6:10
youpiyoyo6-Jul-04 6:10 
GeneralRe: how can I catch WM_DROPFILES from a list view control's in api win32 Pin
palbano6-Jul-04 6:29
palbano6-Jul-04 6:29 
GeneralRe: how can I catch WM_DROPFILES from a list view control's in api win32 Pin
youpiyoyo6-Jul-04 11:42
youpiyoyo6-Jul-04 11:42 
GeneralRe: how can I catch WM_DROPFILES from a list view control's in api win32 Pin
palbano6-Jul-04 15:54
palbano6-Jul-04 15:54 
GeneralRe: how can I catch WM_DROPFILES from a list view control's in api win32 Pin
youpiyoyo7-Jul-04 5:55
youpiyoyo7-Jul-04 5:55 
ok thank you for your help, I finally found it, you tell me the truth, with subclassing...

for people who are interesting there is my solution:

<br />
WNDPROC wpOrigEditProc;<br />
<br />
LRESULT APIENTRY EditSubclassProc(<br />
    HWND hwnd, <br />
    UINT uMsg, <br />
    WPARAM wParam, <br />
    LPARAM lParam) <br />
{ <br />
    if (uMsg == WM_GETDLGCODE) <br />
        return DLGC_WANTALLKEYS; <br />
	if(uMsg == WM_DROPFILES) MessageBox(0,"drop",0,0);<br />
 <br />
    return CallWindowProc(wpOrigEditProc, hwnd, uMsg, <br />
        wParam, lParam); <br />
} <br />
<br />
LRESULT CALLBACK DlgMainProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)<br />
{<br />
	switch(msg)<br />
	{<br />
	   case WM_INITDIALOG:<br />
	   {<br />
            DragAcceptFiles(GetDlgItem(hwnd,IDC_LIST1),TRUE);<br />
	    wpOrigEditProc  = (WNDPROC)SetWindowLong(GetDlgItem(hwnd,IDC_LIST1),GWL_WNDPROC,(LONG) EditSubclassProc);<br />
<br />
             ........<br />
              .......<br />
           }<br />
     ...<br />


for people who have questions e-mail me!!!Blush | :O
GeneralMoveWindow problem Pin
BlackDice6-Jul-04 5:31
BlackDice6-Jul-04 5:31 
GeneralRe: MoveWindow problem Pin
0v3rloader6-Jul-04 5:44
0v3rloader6-Jul-04 5:44 
GeneralRe: MoveWindow problem Pin
BlackDice6-Jul-04 6:01
BlackDice6-Jul-04 6:01 
GeneralRe: MoveWindow problem Pin
palbano6-Jul-04 6:24
palbano6-Jul-04 6:24 
GeneralRe: MoveWindow problem Pin
BlackDice6-Jul-04 6:31
BlackDice6-Jul-04 6:31 
GeneralRe: MoveWindow problem Pin
palbano6-Jul-04 6:45
palbano6-Jul-04 6:45 
GeneralRe: MoveWindow problem Pin
BlackDice6-Jul-04 7:04
BlackDice6-Jul-04 7:04 
GeneralRe: MoveWindow problem Pin
palbano6-Jul-04 9:52
palbano6-Jul-04 9:52 
GeneralRe: MoveWindow problem Pin
BlackDice6-Jul-04 10:16
BlackDice6-Jul-04 10:16 
GeneralService pack 6 and serialization Pin
Salvador Dali6-Jul-04 5:16
Salvador Dali6-Jul-04 5:16 
GeneralRe: Service pack 6 and serialization Pin
Navin6-Jul-04 7:04
Navin6-Jul-04 7:04 
GeneralRe: Service pack 6 and serialization Pin
Ravi Bhavnani6-Jul-04 10:52
professionalRavi Bhavnani6-Jul-04 10:52 
GeneralIHTMLTxtRange::moveToBookmark Pin
*Dreamz6-Jul-04 4:59
*Dreamz6-Jul-04 4:59 
Generalcrystal reports 10 in unmanaged c++ in vs.net 2003 Pin
Irish_GUI6-Jul-04 4:18
Irish_GUI6-Jul-04 4:18 
GeneralRe: crystal reports 10 in unmanaged c++ in vs.net 2003 Pin
Antony M Kancidrowski6-Jul-04 4:49
Antony M Kancidrowski6-Jul-04 4:49 
GeneralRe: crystal reports 10 in unmanaged c++ in vs.net 2003 Pin
Michael P Butler6-Jul-04 8:38
Michael P Butler6-Jul-04 8:38 
GeneralMRU Files in Dialog Program Pin
sweep1236-Jul-04 3:41
sweep1236-Jul-04 3:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.