Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is a 'byte'? Pin
Blake Miller13-Jun-05 7:34
Blake Miller13-Jun-05 7:34 
GeneralCisco info Pin
asv12-Jun-05 20:34
asv12-Jun-05 20:34 
GeneralRe: Cisco info Pin
S Douglas12-Jun-05 23:18
professionalS Douglas12-Jun-05 23:18 
GeneralRe: Cisco info Pin
NormDroid13-Jun-05 1:10
professionalNormDroid13-Jun-05 1:10 
GeneralRe: Cisco info Pin
S Douglas13-Jun-05 4:29
professionalS Douglas13-Jun-05 4:29 
GeneralRe: Cisco info Pin
NormDroid13-Jun-05 4:46
professionalNormDroid13-Jun-05 4:46 
GeneralRe: Cisco info Pin
S Douglas13-Jun-05 4:35
professionalS Douglas13-Jun-05 4:35 
GeneralStrange SetWindowText() under VS2003 Pin
toxcct12-Jun-05 20:21
toxcct12-Jun-05 20:21 
hi folks,

here is my problem.
i have a member function of my dialog box called OnEditDateDay() that maps an EditBox Control EN_CHANGE (ON_EN_CHANGE(IDC_DATEDAY_EDIT, OnEditDateDay)).

when i code the folowing function, it works well under Visual Studio 6, but not perfecty on VS2003.
it returns the cursor (current position where to write in the edit control) at the begining of the edit, each time i reach the 2 characters string length...

here is the code.
void CFactEditorDlg::OnEditDateDay() {
	m_peDateDay->GetWindowText(m_strDateDay);
	if ((m_strDateDay.GetLength() >= 2) && (m_peDateDay == GetFocus())) {
		m_strDateDay = m_strDateDay.Left(2);
		m_peDateDay->SetWindowText(m_strDateDay);
		m_peDateMonth->SetSel(0, -1);
 		m_peDateMonth->SetFocus();
	}
	m_strDateText.Format("%s/%s/%s", m_strDateDay, m_strDateMonth, m_strDateYear);
	m_ptDate->SetWindowText(m_strDateText);
}

i really cannot understand why this...
i give up.

any idea or questions ?



TOXCCT >>> GEII power
[toxcct][VisualCalc]
GeneralRe: Strange SetWindowText() under VS2003 Pin
PJ Arends12-Jun-05 21:33
professionalPJ Arends12-Jun-05 21:33 
GeneralRe: Strange SetWindowText() under VS2003 Pin
toxcct13-Jun-05 0:07
toxcct13-Jun-05 0:07 
GeneralRe: Strange SetWindowText() under VS2003 Pin
Blake Miller13-Jun-05 7:38
Blake Miller13-Jun-05 7:38 
GeneralRe: Strange SetWindowText() under VS2003 Pin
toxcct13-Jun-05 20:09
toxcct13-Jun-05 20:09 
GeneralRe: Strange SetWindowText() under VS2003 Pin
Blake Miller14-Jun-05 4:37
Blake Miller14-Jun-05 4:37 
GeneralRe: Strange SetWindowText() under VS2003 Pin
toxcct14-Jun-05 5:45
toxcct14-Jun-05 5:45 
GeneralRe: Strange SetWindowText() under VS2003 Pin
Blake Miller14-Jun-05 5:51
Blake Miller14-Jun-05 5:51 
GeneralRe: Strange SetWindowText() under VS2003 Pin
toxcct20-Jun-05 20:38
toxcct20-Jun-05 20:38 
GeneralNeed help in RLC(Run-Length Coding)!!! Pin
Member 199230312-Jun-05 20:07
Member 199230312-Jun-05 20:07 
GeneralRe: Need help in RLC(Run-Length Coding)!!! Pin
Ravi Bhavnani13-Jun-05 6:37
professionalRavi Bhavnani13-Jun-05 6:37 
GeneralProblem in adding fifth digit to version number in VC++ 6.0 Pin
Neeranjan12-Jun-05 18:46
Neeranjan12-Jun-05 18:46 
GeneralRe: Problem in adding fifth digit to version number in VC++ 6.0 Pin
Blake Miller13-Jun-05 7:52
Blake Miller13-Jun-05 7:52 
GeneralRe: Problem in adding fifth digit to version number in VC++ 6.0 Pin
Neeranjan13-Jun-05 19:46
Neeranjan13-Jun-05 19:46 
GeneralC++ Array Of Function Pointers problem Pin
CNewbie12-Jun-05 18:21
CNewbie12-Jun-05 18:21 
GeneralRe: C++ Array Of Function Pointers problem Pin
GDavy12-Jun-05 19:34
GDavy12-Jun-05 19:34 
GeneralRe: C++ Array Of Function Pointers problem Pin
toxcct12-Jun-05 20:26
toxcct12-Jun-05 20:26 
GeneralRe: C++ Array Of Function Pointers problem Pin
Bob Stanneveld12-Jun-05 20:56
Bob Stanneveld12-Jun-05 20:56 

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.