Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

talk between dialog boxes

Posted on 2000-02-22
2
Medium Priority
?
173 Views
Last Modified: 2013-11-20
I have an edit box IDC_MYEDIT on one dialog and i want to use SetDlgItemText() from another Class i created for a button so on the mousemove for the button it will put text in the edit box. how do i do it?
0
Comment
Question by:bradsoblesky
2 Comments
 
LVL 8

Accepted Solution

by:
Vinayak Kumbar earned 240 total points
ID: 2548954
Hi,

I assume that, that button is also in same dialog box. And U have a class for that button.

Do like this whenever u want to set the text.

((CMyDlgClass *)GetParent())->SetDlgItemText(IDC_MYEDIT, "Hi");

here CMyDlgClass is the dialog class and u have to include the .h file of that to the button class.

Hope this helps.
VinExpert
0
 

Author Comment

by:bradsoblesky
ID: 2548988
rock on man,thanks for the perfect and quick answer!!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question