This is a discussion on How to set value text to a control in Win32 using VC++? within the Mobile Software Development forums, part of the Software Development category; How to set value text to a control in Win32 using VC++?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| We can use the SendMessage with WM_SETTEXT for set value text for a control in Win32 VC++ application. For example, const char *Msg = "This message was sent"; SendMessage(GetDlgItem(hDlg, IDC_CHECK1), WM_SETTEXT, 0,(LPARAM)(LPCTSTR)Msg); Here is we set the value text for a check box using “SendMessage”. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I check that text entered in a text form field is an integer? | itbarota | HTML, CSS and Javascript Coding Techniques | 2 | 10-26-2007 12:25 AM |
| use of Custom Control and User Control? | a.deeban | ASP and ASP.NET Programming | 1 | 08-20-2007 08:25 AM |
| How can we get the text from edit control in Win32 VC++ application? | mobilegeek | C and C++ Programming | 1 | 07-25-2007 11:27 PM |
| How to Encode a text and Decode it to get the original text using c# .Net? | Archer | C# Programming | 1 | 07-21-2007 01:10 AM |
| I am using CString in my win32 application... | theone | C and C++ Programming | 0 | 07-17-2007 03:41 AM |