Solved

talk between dialog boxes

Posted on 2000-02-22
2
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
VinExpert earned 60 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

635 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