Prev: fclose and CreateFile are very slow on some machines
Next: Named pipes - am I missing something silly?
From: mahantesh on 1 Apr 2010 09:01 Dear Sir, I used the OPENFILENAME structuret to get the file name and I gone through the document and I came to known that for lpfnHook member we should provide the hook pointer of hook procedure and in this hook procedure I handled the message when we select the file from open dialog box and when I selct by moving up and down arrow keys I am getting message but if I press delete button from keyboard then I am not getting message please tell me anyone how to get message for keyboard delete button. Regards, Mahantesh
From: Tim Roberts on 2 Apr 2010 01:39 mahantesh <mahantagoudaec20(a)gmail.com> wrote: > >I used the OPENFILENAME structuret to get the file name and I gone >through the document and I came to known that for lpfnHook member we >should provide the hook pointer of hook procedure and in this hook >procedure I handled the message when we select the file from open >dialog box and when I selct by moving up and down arrow keys I am >getting message but if I press delete button from keyboard then I am >not getting message please tell me anyone how to get message for >keyboard delete button. Are you specify OFN_EXPLORER? If not, you should get all messages before the dialog does, including WM_CHAR, WM_KEYDOWN, and WM_KEYUP. If you specify OFN_EXPLORER, the set of messages you get is much smaller. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc.
From: mahantesh on 2 Apr 2010 03:22 On Apr 2, 10:39 am, Tim Roberts <t...(a)probo.com> wrote: > mahantesh <mahantagoudae...(a)gmail.com> wrote: > > >I used the OPENFILENAME structuret to get the file name and I gone > >through the document and I came to known that for lpfnHook member we > >should provide the hook pointer of hook procedure and in this hook > >procedure I handled the message when we select the file from open > >dialog box and when I selct by moving up and down arrow keys I am > >getting message but if I press delete button from keyboard then I am > >not getting message please tell me anyone how to get message for > >keyboard delete button. > > Are you specify OFN_EXPLORER? If not, you should get all messages before > the dialog does, including WM_CHAR, WM_KEYDOWN, and WM_KEYUP. > > If you specify OFN_EXPLORER, the set of messages you get is much smaller. > -- > Tim Roberts, t...(a)probo.com > Providenza & Boekelheide, Inc. Thank you for reply I am getting event or message when I press up or down arrow key but I am not getting event for delete key please let me known how to get message for delete key..
From: Tim Roberts on 3 Apr 2010 23:55 mahantesh <mahantagoudaec20(a)gmail.com> wrote: >On Apr 2, 10:39�am, Tim Roberts <t...(a)probo.com> wrote: >> mahantesh <mahantagoudae...(a)gmail.com> wrote: >> >> >I used the OPENFILENAME structuret to get the file name and I gone >> >through the document and I came to known that for lpfnHook member we >> >should provide the hook pointer of hook procedure and in this hook >> >procedure I handled the message when we select the file from open >> >dialog box and when I selct by moving up and down arrow keys I am >> >getting message but if I press delete button from keyboard then I am >> >not getting message please tell me anyone how to get message for >> >keyboard delete button. >> >> Are you specify OFN_EXPLORER? �If not, you should get all messages before >> the dialog does, including WM_CHAR, WM_KEYDOWN, and WM_KEYUP. >> >> If you specify OFN_EXPLORER, the set of messages you get is much smaller. > >Thank you for reply >I am getting event or message when I press up or down arrow key but I >am not getting event for delete key please let me known how to get >message for delete key. You alread said that. If you answered my questions, perhaps we could get more hints about answering YOUR questions. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc.
From: mahantesh on 7 Apr 2010 03:01 On Apr 4, 8:55 am, Tim Roberts <t...(a)probo.com> wrote: > mahantesh <mahantagoudae...(a)gmail.com> wrote: > >On Apr 2, 10:39 am, Tim Roberts <t...(a)probo.com> wrote: > >> mahantesh <mahantagoudae...(a)gmail.com> wrote: > > >> >I used the OPENFILENAME structuret to get the file name and I gone > >> >through the document and I came to known that for lpfnHook member we > >> >should provide the hook pointer of hook procedure and in this hook > >> >procedure I handled the message when we select the file from open > >> >dialog box and when I selct by moving up and down arrow keys I am > >> >getting message but if I press delete button from keyboard then I am > >> >not getting message please tell me anyone how to get message for > >> >keyboard delete button. > > >> Are you specify OFN_EXPLORER? If not, you should get all messages before > >> the dialog does, including WM_CHAR, WM_KEYDOWN, and WM_KEYUP. > > >> If you specify OFN_EXPLORER, the set of messages you get is much smaller. > > >Thank you for reply > >I am getting event or message when I press up or down arrow key but I > >am not getting event for delete key please let me known how to get > >message for delete key. > > You alread said that. If you answered my questions, perhaps we could get > more hints about answering YOUR questions. > -- > Tim Roberts, t...(a)probo.com > Providenza & Boekelheide, Inc.- Hide quoted text - > > - Show quoted text - Thank you for replying. Yes I am using OFN_EXPLORER flag in creating the dialog box, if I am not using this flag also I am not the message for delete key button.
|
Next
|
Last
Pages: 1 2 Prev: fclose and CreateFile are very slow on some machines Next: Named pipes - am I missing something silly? |