Click here to Skip to main content
15,906,569 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalresizing of dialog boxes Pin
b_girl9-Oct-03 4:06
b_girl9-Oct-03 4:06 
GeneralRe: resizing of dialog boxes Pin
Ravi Bhavnani9-Oct-03 7:36
professionalRavi Bhavnani9-Oct-03 7:36 
GeneralRe: resizing of dialog boxes Pin
b_girl9-Oct-03 8:17
b_girl9-Oct-03 8:17 
Generalchanging language Pin
dudic9-Oct-03 3:44
dudic9-Oct-03 3:44 
GeneralRe: changing language Pin
Atif Mushtaq10-Oct-03 0:12
Atif Mushtaq10-Oct-03 0:12 
Generaldetecting network computers Pin
YanivNahum9-Oct-03 2:36
YanivNahum9-Oct-03 2:36 
GeneralRe: detecting network computers Pin
David Crow9-Oct-03 3:13
David Crow9-Oct-03 3:13 
GeneralListbox help Pin
NewHSKid9-Oct-03 1:41
NewHSKid9-Oct-03 1:41 
Hi all,

I posted this a couple days ago but didn't get any response. Thought i would try to post it again and see if someone could help.

Wanted to know if it is possible to both pad a hex numbers with leading 0's and also format the width of the message.

I have a string and i just concat a hex number to it. I just want to space out the numbers so that they will line up with the next string added, so that it has the look of a table.

Right now i am padding the hex number like this:
int myString = 10005;
int myString2 = 20003;
testStr.Format("%03X" , myString);
Str += testStr;
testStr.Format("%03X" , myString2);
Str += testStr;
Listbox.AddString(Str);


I know if i take away the 0, then it will set the width, but i need to do both. CAN THIS BE DONE?

thanks in advance.



Jimmy

Just cause I am 15, doesn't mean I'm dumb! (I'll really be 4 on Feb. 29...the year 2004)
GeneralRe: Listbox help Pin
jhwurmbach9-Oct-03 1:57
jhwurmbach9-Oct-03 1:57 
GeneralRe: Listbox help Pin
Steve S9-Oct-03 2:02
Steve S9-Oct-03 2:02 
GeneralRe: Listbox help Pin
Steve S9-Oct-03 2:05
Steve S9-Oct-03 2:05 
QuestionVector inside MFC app? Pin
Zizilamoroso9-Oct-03 1:00
Zizilamoroso9-Oct-03 1:00 
AnswerRe: Vector inside MFC app? Pin
Anand Paranjpe9-Oct-03 1:47
Anand Paranjpe9-Oct-03 1:47 
AnswerRe: Vector inside MFC app? Pin
Steve S9-Oct-03 1:51
Steve S9-Oct-03 1:51 
GeneralRe: Vector inside MFC app? Pin
Zizilamoroso9-Oct-03 3:20
Zizilamoroso9-Oct-03 3:20 
AnswerRe: Vector inside MFC app? Pin
jhwurmbach9-Oct-03 2:02
jhwurmbach9-Oct-03 2:02 
GeneralForm like MS Office assistance in vc++ Pin
sunju9-Oct-03 0:37
sunju9-Oct-03 0:37 
GeneralRe: Form like MS Office assistance in vc++ Pin
Anthony_Yio9-Oct-03 2:30
Anthony_Yio9-Oct-03 2:30 
GeneralRe: Form like MS Office assistance in vc++ Pin
Atif Mushtaq10-Oct-03 0:17
Atif Mushtaq10-Oct-03 0:17 
GeneralRe: Form like MS Office assistance in vc++ Pin
Anthony_Yio9-Oct-03 2:37
Anthony_Yio9-Oct-03 2:37 
GeneralRe: Form like MS Office assistance in vc++ Pin
sunju9-Oct-03 18:49
sunju9-Oct-03 18:49 
Questionhow to implement a CDragCheckListBox? Pin
Jefferson Liu9-Oct-03 0:14
Jefferson Liu9-Oct-03 0:14 
GeneralStretchDIBits fit into paper Pin
vancouver7778-Oct-03 23:51
vancouver7778-Oct-03 23:51 
GeneralRe: StretchDIBits fit into paper Pin
Alex Dolpfin9-Oct-03 3:06
Alex Dolpfin9-Oct-03 3:06 
Questionqeustions on scrolling window? Pin
ashxly8-Oct-03 23:46
ashxly8-Oct-03 23:46 

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.