Click here to Skip to main content
15,908,455 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CPP question Pin
Navin28-Oct-02 3:56
Navin28-Oct-02 3:56 
GeneralRe: CPP question Pin
alex.barylski28-Oct-02 6:42
alex.barylski28-Oct-02 6:42 
QuestionCWnd::GetDlgItem() Question? Pin
Old Gun27-Oct-02 20:58
Old Gun27-Oct-02 20:58 
AnswerRe: CWnd::GetDlgItem() Question? Pin
Mel Feik27-Oct-02 21:13
Mel Feik27-Oct-02 21:13 
AnswerRe: CWnd::GetDlgItem() Question? Pin
ian mariano27-Oct-02 21:29
ian mariano27-Oct-02 21:29 
GeneralRe: CWnd::GetDlgItem() Question? Pin
Old Gun28-Oct-02 1:16
Old Gun28-Oct-02 1:16 
AnswerRe: CWnd::GetDlgItem() Question? Pin
Chintan28-Oct-02 1:16
Chintan28-Oct-02 1:16 
Generaldialog control focus. Pin
Mel Feik27-Oct-02 19:33
Mel Feik27-Oct-02 19:33 
Any suggestion for a better piece of code to move the focus to the next control in a dialog box? I am not using rich edits, and I tried some other things without the desired results. Somehow though, I suspect this is not the best way to go about it:

[Edit] I have this edit restricted to six characters but when I try to use the DDV max chars value to contol I get what appears an indexing problem as it moves the focus on the 7th char but that char isn't placed into the next edit which hampers continuity of the user's typing.

<br />
void CRHTC100Dlg::OnChangeId()   // my edit is IDC_ID <br />
{<br />
	CString str;<br />
	GetDlgItemText(IDC_ID,str);<br />
	if ( str.GetLength() == 6)<br />
	NextDlgCtrl();	    <br />
}//end of OnChangeId()


This just seems cumbersome to me and I'm just hoping to find some input that saves me from spending to much time researching as it does work this way.
-Mel

---------------------------------------------

The greenest grass is NOT on the other side of the fence, its the grass you take care of. Have you watered your lawn lately?
GeneralChanging CEdit font Pin
alex.barylski27-Oct-02 18:56
alex.barylski27-Oct-02 18:56 
GeneralRe: Changing CEdit font Pin
Dominik Reichl27-Oct-02 22:00
Dominik Reichl27-Oct-02 22:00 
GeneralRe: Changing CEdit font Pin
alex.barylski28-Oct-02 6:46
alex.barylski28-Oct-02 6:46 
GeneralCorrect approach for SysAllocString/SysFreeString Pin
Paul Farry27-Oct-02 17:40
professionalPaul Farry27-Oct-02 17:40 
GeneralRe: Correct approach for SysAllocString/SysFreeString Pin
ian mariano27-Oct-02 21:45
ian mariano27-Oct-02 21:45 
Generaladding an image II Pin
Mel Feik27-Oct-02 17:17
Mel Feik27-Oct-02 17:17 
GeneralRe: adding an image II Pin
Paul M Watt27-Oct-02 18:46
mentorPaul M Watt27-Oct-02 18:46 
GeneralRe: adding an image II Pin
Mel Feik27-Oct-02 18:52
Mel Feik27-Oct-02 18:52 
GeneralHelp with loading files Pin
Steven M Hunt27-Oct-02 16:16
Steven M Hunt27-Oct-02 16:16 
GeneralRe: Help with loading files Pin
Shog927-Oct-02 16:24
sitebuilderShog927-Oct-02 16:24 
GeneralHere's the code Pin
Steven M Hunt27-Oct-02 16:56
Steven M Hunt27-Oct-02 16:56 
GeneralRe: Here's the code Pin
Shog927-Oct-02 18:11
sitebuilderShog927-Oct-02 18:11 
GeneralRe: Help with loading files Pin
Christian Graus27-Oct-02 17:37
protectorChristian Graus27-Oct-02 17:37 
GeneralRe: Help with loading files Pin
carrie28-Oct-02 0:58
carrie28-Oct-02 0:58 
QuestionIWebBrowser2 from IHTMLWindow2 - ? Pin
Alex Cramer27-Oct-02 16:01
Alex Cramer27-Oct-02 16:01 
Generalhelp Pin
imran_rafique27-Oct-02 15:02
imran_rafique27-Oct-02 15:02 
GeneralRe: help Pin
Christian Graus27-Oct-02 15:04
protectorChristian Graus27-Oct-02 15:04 

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.