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

C / C++ / MFC

 
Questionhow can i convert CComBSTR to char* Pin
Member 44324835-Jun-00 21:49
Member 44324835-Jun-00 21:49 
AnswerRe: how can i convert CComBSTR to char* Pin
Robin Summerhill6-Jun-00 2:28
Robin Summerhill6-Jun-00 2:28 
Generalthank you ^^ you're great guy!! Pin
Jim6-Jun-00 2:42
Jim6-Jun-00 2:42 
GeneralMkTypLib Unknown Type error (16-bit dll)) Pin
Sam Hobbs5-Jun-00 14:52
Sam Hobbs5-Jun-00 14:52 
GeneralDelayed Clipboard Rendering Pin
Alan Fritz5-Jun-00 12:10
Alan Fritz5-Jun-00 12:10 
QuestionPluggable protocols and Monikers? Pin
mahesh5-Jun-00 11:05
mahesh5-Jun-00 11:05 
AnswerDid you succeed to implement APP? Pin
Ryan Park1-Feb-01 20:13
Ryan Park1-Feb-01 20:13 
GeneralGUI design question Pin
Eddie Ng5-Jun-00 11:02
Eddie Ng5-Jun-00 11:02 
Hi all,
I have a dialog which has a static textbox that says "The file c:\foo\bar.txt cannot be loaded. You must decide what to do now." and a few buttons beside the textbox to present the user with the choices. There is no problem with the dialog except when the pathname is really long (i.e. 4095 characters long), then the textbox cannot include the whole sentence. What do I do?

I have think of a few ways already but these won't fix the problem:
1. Use a messagebox(but I need more buttons than just OK and Cancel)
2. Use a ellipsize function. (but I want to present the user with the full filename, that's the whole point of having another dialog box)
3. Use "Resizing text to fit in rect" in an earlier article by Jason Phillips. (but this will result in some really ugly code and break a lot of other codes)

What I'm thinking of is, is there some GUI design techniques that will solve this common problem of long filename?

Thanks in advance.


GeneralRe: GUI design question Pin
Alvaro Mendez5-Jun-00 13:08
Alvaro Mendez5-Jun-00 13:08 
GeneralRe: GUI design question Pin
Member 7505-Jun-00 17:58
Member 7505-Jun-00 17:58 
GeneralRe: GUI design question Pin
Chris Maunder6-Jun-00 0:35
cofounderChris Maunder6-Jun-00 0:35 
GeneralRe: GUI design question Pin
vance7879-Jun-00 14:11
vance7879-Jun-00 14:11 
GeneralRe: GUI design question Pin
Adiga7-Jun-00 2:22
Adiga7-Jun-00 2:22 
GeneralSerializing data structures Pin
JCpp5-Jun-00 9:38
JCpp5-Jun-00 9:38 
GeneralRe: Serializing data structures Pin
Kurt6-Jun-00 3:05
Kurt6-Jun-00 3:05 
GeneralEditing CListView subitems Pin
JCpp5-Jun-00 9:33
JCpp5-Jun-00 9:33 
GeneralRe: Editing CListView subitems Pin
Alvaro Mendez5-Jun-00 13:08
Alvaro Mendez5-Jun-00 13:08 
GeneralRe: Editing CListView subitems Pin
Sam Hobbs5-Jun-00 14:56
Sam Hobbs5-Jun-00 14:56 
GeneralRe: Editing CListView subitems Pin
Chris Maunder6-Jun-00 0:37
cofounderChris Maunder6-Jun-00 0:37 
GeneralRe: Editing CListView subitems Pin
Twain Summerset7-Jun-00 18:54
sussTwain Summerset7-Jun-00 18:54 
QuestionHow to use StrecthBlt? Pin
Member 117662575-Jun-00 9:14
Member 117662575-Jun-00 9:14 
AnswerRe: How to use StrecthBlt? Pin
Chris Losinger6-Jun-00 5:08
professionalChris Losinger6-Jun-00 5:08 
GeneralMultiple Document Types Pin
Joseph5-Jun-00 5:30
Joseph5-Jun-00 5:30 
GeneralRe: Multiple Document Types Pin
Kurt6-Jun-00 3:04
Kurt6-Jun-00 3:04 
GeneralWarning C4275 non dll-interface class Pin
Member 13564-Jun-00 22:14
Member 13564-Jun-00 22:14 

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.