Click here to Skip to main content
15,907,910 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetOpenFileName thread problem Pin
Anonymous8-Jul-03 7:31
Anonymous8-Jul-03 7:31 
GeneralRe: GetOpenFileName thread problem Pin
David Crow8-Jul-03 7:38
David Crow8-Jul-03 7:38 
QuestionText Editor as a list control? Pin
Jay Hova8-Jul-03 6:36
Jay Hova8-Jul-03 6:36 
AnswerRe: Text Editor as a list control? Pin
Magnus Westin8-Jul-03 6:48
Magnus Westin8-Jul-03 6:48 
GeneralRe: Text Editor as a list control? Pin
Jay Hova8-Jul-03 7:53
Jay Hova8-Jul-03 7:53 
GeneralRe: Text Editor as a list control? Pin
Magnus Westin8-Jul-03 8:10
Magnus Westin8-Jul-03 8:10 
GeneralRe: Text Editor as a list control? Pin
Jay Hova8-Jul-03 8:54
Jay Hova8-Jul-03 8:54 
GeneralRe: Text Editor as a list control? Pin
David Crow8-Jul-03 9:33
David Crow8-Jul-03 9:33 
Jay Hova wrote:
How would I format this text? (something like setw() in a cout statement?)

Not unless you are working on a console application. Since you've mentioned the use of an edit control and a list control, you are obviously not working on a console application, but rather a GUI application.

Send formatted text to either using a CString object. It has a nice Format() method.

Here's a very simple example:

void CMyEditView::OnInitialUpdate() 
{
    CEditView::OnInitialUpdate();

    CEdit &Edit = GetEditCtrl();
    Edit.SetWindowText("Hello World");

    // if you want some formatted text, use this instead
    CString str;
    str.Format("2 * 2 = %d", 2 * 2);
    Edit.SetWindowText(str);
}

QuestionHow to unzip archive file in C/C++ Pin
Valera2411768-Jul-03 6:07
Valera2411768-Jul-03 6:07 
AnswerRe: How to unzip archive file in C/C++ Pin
Jon Sagara8-Jul-03 6:21
Jon Sagara8-Jul-03 6:21 
GeneralMysterious C++ behaviour Pin
RK_20008-Jul-03 6:01
RK_20008-Jul-03 6:01 
GeneralRe: Mysterious C++ behaviour Pin
Magnus Westin8-Jul-03 6:52
Magnus Westin8-Jul-03 6:52 
GeneralWM_KEYDOWN Events... Pin
Tintori Francesco8-Jul-03 5:09
Tintori Francesco8-Jul-03 5:09 
GeneralRe: WM_KEYDOWN Events... Pin
Mike Dimmick8-Jul-03 5:26
Mike Dimmick8-Jul-03 5:26 
GeneralRe: WM_KEYDOWN Events... Pin
Tintori Francesco8-Jul-03 5:39
Tintori Francesco8-Jul-03 5:39 
GeneralRe: WM_KEYDOWN Events... Pin
Rage8-Jul-03 5:55
professionalRage8-Jul-03 5:55 
GeneralRe: WM_KEYDOWN Events... Pin
Mike Dimmick8-Jul-03 5:56
Mike Dimmick8-Jul-03 5:56 
GeneralRe: WM_KEYDOWN Events... Pin
Tintori Francesco8-Jul-03 6:01
Tintori Francesco8-Jul-03 6:01 
Generalgetting the path Pin
pnpfriend8-Jul-03 4:53
pnpfriend8-Jul-03 4:53 
GeneralRe: getting the path Pin
valikac8-Jul-03 5:30
valikac8-Jul-03 5:30 
GeneralRe: getting the path Pin
Joaquín M López Muñoz8-Jul-03 7:02
Joaquín M López Muñoz8-Jul-03 7:02 
GeneralRe: getting the path Pin
David Crow8-Jul-03 7:29
David Crow8-Jul-03 7:29 
GeneralWorking with files Pin
jales8-Jul-03 4:02
jales8-Jul-03 4:02 
GeneralRe: Working with files Pin
AlexO8-Jul-03 4:06
AlexO8-Jul-03 4:06 
GeneralRe: Working with files Pin
John M. Drescher8-Jul-03 4:13
John M. Drescher8-Jul-03 4:13 

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.