Thread View: comp.os.ms-windows.programmer.tools
3 messages
3 total messages
Started by Phil J Smith
Fri, 18 Dec 1992 05:15
OWL an ListBoxes
Author: Phil J Smith
Date: Fri, 18 Dec 1992 05:15
Date: Fri, 18 Dec 1992 05:15
12 lines
843 bytes
843 bytes
I have a listbox in a dialog box that is supposed to display a directory list. The problem is that I can't get it to display the directory until I click in it. I would like the directory to be displayed when the dialog box is opened. I have tried SendDlgItemMsg(id,LBN_SETFOCUS,0,0) but that does not seem to work. Any ideas? Thanks, Phil Smith
Re: OWL an ListBoxes
Author: George Mills
Date: Fri, 18 Dec 1992 16:33
Date: Fri, 18 Dec 1992 16:33
14 lines
908 bytes
908 bytes
pjsmith@iastate.edu (Phil J Smith) writes: >I have a listbox in a dialog box that is supposed to display a directory list. >The problem is that I can't get it to display the directory until I click in >it. I would like the directory to be displayed when the dialog box is opened. >I have tried SendDlgItemMsg(id,LBN_SETFOCUS,0,0) but that does not seem to >work. Any ideas? Create a virtual function for WM_INITDIALOG and initialize your box there. >Thanks, >Phil Smith >
Re: OWL an ListBoxes
Author: Kim Letkeman
Date: Wed, 23 Dec 1992 16:06
Date: Wed, 23 Dec 1992 16:06
19 lines
1435 bytes
1435 bytes
In article <mills.724696382@dialup.athena.lkg.dec.com> mills@athena.lkg.dec.com (George Mills) writes: | pjsmith@iastate.edu (Phil J Smith) writes: | | >I have a listbox in a dialog box that is supposed to display a directory list. | >The problem is that I can't get it to display the directory until I click in | >it. I would like the directory to be displayed when the dialog box is opened. | >I have tried SendDlgItemMsg(id,LBN_SETFOCUS,0,0) but that does not seem to | >work. Any ideas? | | Create a virtual function for WM_INITDIALOG and initialize your box there. Actually, the virtual function setupwindow effectively does this for you. Setupwindow is called for any kind of window (including dialogs loaded as resources) just before display. Kim -- Kim Letkeman kim@Software.Mitel.COM
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads