Click here to Skip to main content
16,015,900 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
ok blake,

here is the new code :
void CFactEditorDlg::OnEditDateDay() {
	static bAlreadyIn = false;
	if (!bAlreadyIn) {
		bAlreadyIn = true;
		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);
		bAlreadyIn = false;
	}
}


it seems to work quite fine now...

but it still don't understand why it behaves like this only under VC++7...

thanks anyway




TOXCCT >>> GEII power
[toxcct][VisualCalc]
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 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 3:16
David Crow13-Jun-05 3:16 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie13-Jun-05 5:08
CNewbie13-Jun-05 5:08 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 5:17
David Crow13-Jun-05 5:17 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie13-Jun-05 5:39
CNewbie13-Jun-05 5:39 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 6:08
David Crow13-Jun-05 6:08 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie13-Jun-05 6:16
CNewbie13-Jun-05 6:16 
GeneralRe: C++ Array Of Function Pointers problem Pin
David Crow13-Jun-05 6:27
David Crow13-Jun-05 6:27 
GeneralRe: C++ Array Of Function Pointers problem Pin
CNewbie15-Jun-05 19:32
CNewbie15-Jun-05 19:32 

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.