Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
JokeRe: Structure Offsets Pin
Richard MacCutchan12-Sep-12 21:58
mveRichard MacCutchan12-Sep-12 21:58 
Questionmodify arduino code 6x24 led matrix to 10x24 - can anyone help modify this code please my email is visualfx@ananzi.co.za Pin
visualvfx6-Sep-12 7:03
visualvfx6-Sep-12 7:03 
AnswerRe: modify arduino code 6x24 led matrix to 10x24 - can anyone help modify this code please my email is visualfx@ananzi.co.za PinPopular
Chris Losinger6-Sep-12 9:28
professionalChris Losinger6-Sep-12 9:28 
Questionhow to make a static box movable in MFC.? Pin
mbatra316-Sep-12 3:33
mbatra316-Sep-12 3:33 
AnswerRe: how to make a static box movable in MFC.? Pin
Chris Losinger6-Sep-12 3:44
professionalChris Losinger6-Sep-12 3:44 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra316-Sep-12 20:59
mbatra316-Sep-12 20:59 
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger7-Sep-12 1:07
professionalChris Losinger7-Sep-12 1:07 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 1:26
mbatra317-Sep-12 1:26 
Hi Chris,

I am using OnChange event notificaTION OF Edit control. In that I am updating the text simultaneously in static control as user types in. If I don't use the moving code, I can see text being updated in static control. If I am using the code to move the static control, when I run the application, I can't see the text being updated in the static control as user types in. Given below is the sample code which I am using to update the text in the static control.

<br />
void ChageTextDyn::OnChangeInputtext()<br />
{<br />
	// TODO:  If this is a RICHEDIT control, the control will not<br />
	// send this notification unless you override the CDialogEx::OnInitDialog()<br />
	// function and call CRichEditCtrl().SetEventMask()<br />
	// with the ENM_CHANGE flag ORed into the mask.<br />
<br />
	CString inText;<br />
	m_InputEditText.GetWindowTextW(inText);<br />
	m_OutputStaticText.SetWindowTextW(inText);<br />
}<br />


Regards,
Mbatra
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger7-Sep-12 1:28
professionalChris Losinger7-Sep-12 1:28 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 1:36
mbatra317-Sep-12 1:36 
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger7-Sep-12 1:39
professionalChris Losinger7-Sep-12 1:39 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 1:47
mbatra317-Sep-12 1:47 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 1:48
mbatra317-Sep-12 1:48 
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger7-Sep-12 1:54
professionalChris Losinger7-Sep-12 1:54 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 2:03
mbatra317-Sep-12 2:03 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 2:07
mbatra317-Sep-12 2:07 
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger7-Sep-12 2:18
professionalChris Losinger7-Sep-12 2:18 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 2:23
mbatra317-Sep-12 2:23 
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger7-Sep-12 2:31
professionalChris Losinger7-Sep-12 2:31 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra317-Sep-12 2:37
mbatra317-Sep-12 2:37 
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger7-Sep-12 3:10
professionalChris Losinger7-Sep-12 3:10 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra3110-Sep-12 23:14
mbatra3110-Sep-12 23:14 
GeneralRe: how to make a static box movable in MFC.? Pin
Chris Losinger11-Sep-12 0:57
professionalChris Losinger11-Sep-12 0:57 
GeneralRe: how to make a static box movable in MFC.? Pin
mbatra3111-Sep-12 1:35
mbatra3111-Sep-12 1:35 
QuestionWhy not display the image in the PICTUREBOX Pin
yu-jian5-Sep-12 21:05
yu-jian5-Sep-12 21:05 

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.