![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
How get textBox values from subTabControl into maintabControlHi all,
I want to get textBox values from subTabControl into maintabControl. Follwing is my code that i written in mainTabControl: IDC_EDITMCNO_SUB is textbox in subTabControl and MacNo_Sub is variable for IDC_EDITMCNO_SUB, i trying to get value from IDC_EDITMCNO_SUB and assign the value to textbox in mainTabControl which namely IDC_EDITMCNO_MAIN. McNo_Main is variable for IDC_EDITMCNO_MAIN. CPP / C++ / C Code:
when compile this program, it succeeded and no return error. but when i run this program, it does't return any value in IDC_EDITMCNO_MAIN. can anyone help me to get the value from IDC_EDITMCNO_SUB?? Please show me some guide to solve this problem..its very urgent for me.. I very appreciate your help.. Thanks very much . Regards: Alice |
|||
|
#2
|
||||
|
||||
Re: How get textBox values from subTabControl into maintabControlI don't have much interest in MFC-based programming. I was going to refer you to the MFC forum section, but once there, I saw that you didn't appear to get the help that you wanted and came here instead. In such cases, you may want to clearly state your platform, compiler/tools and that you are using MFC. You may also want to specify whether the application is a CDialog-based or some other derived type to give a bit more insight into your problem domain.
I suspect that you have decided on a CDialog-based application and are having problems retrieving data from controls found on the dialog. One method is to create a CString member variable for the control and then implement the OnChanged (I believe) handler for your CEdit (or similar) control. Whenever changed, update the CString with the contents. Note that this is not an incredibly efficient method, rather, it is a matter of convenience and does not delegate the responsibility to something like a pushbutton press. More efficient would probably be a "string stream" type class, of which I'm sure there is one in MFC. My recommendation would be to get the code working and then look for ways to optimize it. Note along the way that there are areas of inefficiency that should be adequately commented; probably using the TODO convention. For now, you may simply want to start with something like: CPP / C++ / C Code:
Note that I was unable to test any of this code. MxB |
|
#3
|
|||
|
|||
Re: How get textBox values from subTabControl into maintabControlHi,
thanks very much for your reply.. i try to work on it.. thanks again.. |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Convert RGB to luma and Chroma component | maximuz | C Programming Language | 17 | 12-Feb-2008 12:54 |
| Please help me to convert a simple C++ program into an object-oriented one. | zekesteer | C++ Forum | 5 | 05-Jan-2008 10:05 |
| php/mysql getting column values from db into textbox on a form | mrjameer | MySQL / PHP Forum | 6 | 23-Aug-2006 08:21 |
| Inpage values in code behind | ajitham | .NET Forum | 0 | 25-Jan-2006 05:25 |
| paasing values in fk_t_diectories | zuzupus | MySQL / PHP Forum | 6 | 12-Aug-2003 07:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The