Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Enumerating SCSI devices? Pin
FoxholeWilly28-Feb-07 8:56
FoxholeWilly28-Feb-07 8:56 
GeneralCombo Box Owner Drawn Pin
Anthony98871-Apr-03 4:43
Anthony98871-Apr-03 4:43 
GeneralRe: Combo Box Owner Drawn Pin
Dave Bryant1-Apr-03 9:15
Dave Bryant1-Apr-03 9:15 
GeneralRe: Combo Box Owner Drawn Pin
Anthony98872-Apr-03 3:56
Anthony98872-Apr-03 3:56 
GeneralStill trying to SetFocus() Pin
ns1-Apr-03 4:08
ns1-Apr-03 4:08 
QuestionHow to Disable F1 pass to CXXApp in pop up dialog? Pin
cadinfo1-Apr-03 3:51
cadinfo1-Apr-03 3:51 
GeneralAnother Design question/comment Pin
Maximilien1-Apr-03 2:52
Maximilien1-Apr-03 2:52 
GeneralRe: Another Design question/comment Pin
Dave Bryant1-Apr-03 9:13
Dave Bryant1-Apr-03 9:13 
It sounds okay.

As a reference, Windows controls tend to use a mixture of the approaches. When they change, or an event occurs, they send a message to their parent (meaning that the parent does not have to implement a certain interface, but may optionally handle the notification messages, normally sent as WM_COMMAND or WM_NOTIFY). Some controls just send a message saying that something changed, like a combo box sends a message saying the selection changed, without providing any information about what the selection has changed to - you need to query it. Other controls, such as a tree control, send much more information in their notify messages, often providing all the information required (such as the previously selected item, the new item, the item state etc.).

The only change i would suggest is to change the controls from using a pointer to the parent and calling a function, to sending a custom message to the parent. This will make the controls easier to reuse in another situation, because they won't be hardcoded to use a specific parent dialog.

Dave
http://www.cloudsofheaven.org
GeneralRe: Another Design question/comment Pin
Maximilien1-Apr-03 9:39
Maximilien1-Apr-03 9:39 
QuestionAdd more functions for ListBox control? Pin
chen1-Apr-03 2:51
chen1-Apr-03 2:51 
AnswerRe: Add more functions for ListBox control? Pin
Dave Bryant1-Apr-03 9:07
Dave Bryant1-Apr-03 9:07 
QuestionHow to prevent IE from caching files Pin
sanskypotov1-Apr-03 2:37
sanskypotov1-Apr-03 2:37 
GeneralCollection Classes Needed Pin
#realJSOP1-Apr-03 2:35
professional#realJSOP1-Apr-03 2:35 
GeneralRe: Collection Classes Needed Pin
jhwurmbach1-Apr-03 2:55
jhwurmbach1-Apr-03 2:55 
GeneralRe: Collection Classes Needed Pin
#realJSOP1-Apr-03 3:06
professional#realJSOP1-Apr-03 3:06 
GeneralRe: Collection Classes Needed Pin
#realJSOP1-Apr-03 4:10
professional#realJSOP1-Apr-03 4:10 
GeneralRe: Collection Classes Needed Pin
User 98851-Apr-03 6:53
User 98851-Apr-03 6:53 
GeneralRe: Collection Classes Needed Pin
#realJSOP1-Apr-03 9:03
professional#realJSOP1-Apr-03 9:03 
GeneralRe: Collection Classes Needed Pin
Michael Dunn1-Apr-03 9:32
sitebuilderMichael Dunn1-Apr-03 9:32 
QuestionHow to make a fullscreen window in SDI or Dialogbased application Pin
u990105@giki.edu.pk1-Apr-03 2:28
u990105@giki.edu.pk1-Apr-03 2:28 
AnswerRe: How to make a fullscreen window in SDI or Dialogbased application Pin
Joan M1-Apr-03 2:35
professionalJoan M1-Apr-03 2:35 
GeneralEasy and fast way of detecting if Outlook is installed Pin
Braulio Dez1-Apr-03 2:12
Braulio Dez1-Apr-03 2:12 
GeneralRe: Easy and fast way of detecting if Outlook is installed Pin
Daniel Strigl1-Apr-03 2:58
Daniel Strigl1-Apr-03 2:58 
General(Previously) undocumented Win32 APIs Pin
Ravi Bhavnani1-Apr-03 2:02
professionalRavi Bhavnani1-Apr-03 2:02 
GeneralRe: (Previously) undocumented Win32 APIs Pin
User 98851-Apr-03 6:55
User 98851-Apr-03 6:55 

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.