Click here to Skip to main content
15,927,514 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC 7.0 migration Pin
unknown soldier19-Jul-02 22:05
unknown soldier19-Jul-02 22:05 
GeneralRe: VC 7.0 migration Pin
Nish Nishant19-Jul-02 22:43
sitebuilderNish Nishant19-Jul-02 22:43 
GeneralRe: VC 7.0 migration Pin
unknown soldier19-Jul-02 23:00
unknown soldier19-Jul-02 23:00 
GeneralRe: VC 7.0 migration Pin
Anonymous20-Jul-02 2:50
Anonymous20-Jul-02 2:50 
Generalaccessing control in view1 from view2 - error says control not a member of CView* Pin
ns19-Jul-02 20:10
ns19-Jul-02 20:10 
GeneralI'm working around by doing a sendmessage Pin
ns19-Jul-02 20:18
ns19-Jul-02 20:18 
GeneralRe: accessing control in view1 from view2 - error says control not a member of CView* Pin
l a u r e n19-Jul-02 22:33
l a u r e n19-Jul-02 22:33 
GeneralRe: accessing control in view1 from view2 - error says control not a member of CView* Pin
Ravi Bhavnani20-Jul-02 6:29
professionalRavi Bhavnani20-Jul-02 6:29 
Here's how:
  1. Add an invisible pushbutton (IDC_SET_CHECK) to the form in View2. The IDC_SET_CHECK handler (add it using ClassWizard) should do what you want it to do to the view's list ctrl.

  2. From View1, get a pointer to View2 and post it the IDC_SET_CHECK message, eg:

      pView2->PostMessage (WM_COMMAND, IDC_SET_CHECK, 0);
PS: A better way would be to make IDC_SET_CHECK a hidden menu command instead of clutering up the view's dialog resource with pushbuttons. I often have a menu resource called IDM_HIDDEN_COMMANDS that holds these commands.

/ravi

Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
GeneralCritialSection Initialization Pin
Anonymous19-Jul-02 19:59
Anonymous19-Jul-02 19:59 
GeneralCSocket Pin
Ken Mazaika19-Jul-02 19:34
Ken Mazaika19-Jul-02 19:34 
General.OCX file, activeX control question Pin
a3gupta19-Jul-02 19:29
a3gupta19-Jul-02 19:29 
GeneralRe: .OCX file, activeX control question Pin
Carlos Antollini19-Jul-02 20:16
Carlos Antollini19-Jul-02 20:16 
GeneralRe: .OCX file, activeX control question Pin
l a u r e n19-Jul-02 22:35
l a u r e n19-Jul-02 22:35 
GeneralRe: .OCX file, activeX control question Pin
super20-Jul-02 1:16
professionalsuper20-Jul-02 1:16 
GeneralRe: .OCX file, activeX .. Thanks .. one more question Pin
a3gupta20-Jul-02 12:12
a3gupta20-Jul-02 12:12 
QuestionMainFrames OnDestroy or OnClose? Pin
ns19-Jul-02 19:06
ns19-Jul-02 19:06 
AnswerRe: MainFrames OnDestroy or OnClose? Pin
l a u r e n19-Jul-02 22:37
l a u r e n19-Jul-02 22:37 
AnswerRe: MainFrames OnDestroy or OnClose? Pin
Ravi Bhavnani20-Jul-02 7:05
professionalRavi Bhavnani20-Jul-02 7:05 
GeneralI want VirtualDub!!! Pin
RichardWdy19-Jul-02 18:48
RichardWdy19-Jul-02 18:48 
GeneralRe: I want VirtualDub!!! Pin
Christian Graus19-Jul-02 21:57
protectorChristian Graus19-Jul-02 21:57 
GeneralRe: I want VirtualDub!!! Pin
Jason Hooper20-Jul-02 2:07
Jason Hooper20-Jul-02 2:07 
QuestionMFC To ATL problems ?????? Pin
Leesen19-Jul-02 18:04
Leesen19-Jul-02 18:04 
AnswerRe: MFC To ATL problems ?????? Pin
Christian Graus19-Jul-02 21:59
protectorChristian Graus19-Jul-02 21:59 
GeneralRe: MFC To ATL problems ?????? Pin
Leesen20-Jul-02 0:00
Leesen20-Jul-02 0:00 
GeneralRe: MFC To ATL problems ?????? Pin
Christian Graus20-Jul-02 0:17
protectorChristian Graus20-Jul-02 0:17 

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.