Click here to Skip to main content
15,917,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalabout xor encrytion... Pin
c028121925-Mar-04 1:48
c028121925-Mar-04 1:48 
GeneralRe: about xor encrytion... Pin
Dominik Reichl25-Mar-04 2:21
Dominik Reichl25-Mar-04 2:21 
Questionwhat is rfind in vc++ Pin
Anonymous25-Mar-04 1:20
Anonymous25-Mar-04 1:20 
AnswerRe: what is rfind in vc++ Pin
toxcct25-Mar-04 1:41
toxcct25-Mar-04 1:41 
AnswerRe: what is rfind in vc++ Pin
Antony M Kancidrowski25-Mar-04 4:08
Antony M Kancidrowski25-Mar-04 4:08 
QuestionIs it possiible to set font for not integer size ? Pin
vgrigor25-Mar-04 1:07
vgrigor25-Mar-04 1:07 
GeneralLoading resouce from .dll Pin
nareshn225-Mar-04 0:38
nareshn225-Mar-04 0:38 
GeneralRequest for advice on design of complex dialog Pin
iknowindigo25-Mar-04 0:01
iknowindigo25-Mar-04 0:01 
I could really use some advice on how to implement a complex dialog I want to create.

Functionally, I would like an interface very similar to the new XP type MS common dialog FileOpen, even though it isn’t to be used for opening files.

Spy tells me that the FileOpen dialog has a couple of "Command Bars" a list control, and then some custom base class container.

As far as I know, the command bar approach requires docking the bar, which isn't easy to do in a dialog - you need a frame window to do that.

Here's what I would like to have in my dialog:

1) It should be a modal dialog.

2) The dialog should be resizable.

3) A vertical “command bar” type interface on the left with 5 main buttons. These should be drop targets so that the user can pick something from a listbox, drag and drop it onto one of the buttons. Looking as nice as the FileOpen control would be extra credit, but nice.

4) To the right of the command bar, I want to put a tree control and a list control in place, with a splitter between them. In one mode I might hide the tree window, but in other modes, I want them both to be visible and functional.

5) At top would be some controls, probably in a toolbar – a combo box is the main control needed.

6) At the bottom, similar controls as the common dialog – an edit box, and the OK/Cancel/Help buttons.

Again, my functional model seems a lot like the MS FileOpen dialog.

I’ve been working on this for some time, trying different tacks, and I’ve not yet succeeded in getting all the functionality I need.

For example, using articles from Code Project and Code Guru (thanks!) a resizable dialog with splitters and combos. I had problems getting the “control bar” working. I tried using bitmapped buttons, but was getting strange errors on redraw (they were owner drawn.) This is the route I’m still working on, but I’m not as happy with the “look” of the buttons, and was re-thinking the “control bar” approach.

I would welcome input! Thanks very much,

Gene Sewell


GeneralIdentifying controls in CDialog Pin
JonWayne24-Mar-04 23:44
JonWayne24-Mar-04 23:44 
GeneralRe: Identifying controls in CDialog Pin
JonWayne24-Mar-04 23:59
JonWayne24-Mar-04 23:59 
GeneralRe: Identifying controls in CDialog Pin
toxcct25-Mar-04 1:44
toxcct25-Mar-04 1:44 
GeneralRe: Identifying controls in CDialog Pin
David Crow25-Mar-04 2:33
David Crow25-Mar-04 2:33 
GeneralLoad Resource's Bitmap To HBITMAP Pin
akirachen24-Mar-04 23:42
akirachen24-Mar-04 23:42 
GeneralCHtmlView inside SDI App. - Painting the Mainframe Pin
AssemblySoft24-Mar-04 22:28
AssemblySoft24-Mar-04 22:28 
GeneralPaste CF_METAFILEPICT in a rtf dialog box app Pin
Filomela24-Mar-04 21:57
Filomela24-Mar-04 21:57 
GeneralConversion... Pin
Anonymous24-Mar-04 21:51
Anonymous24-Mar-04 21:51 
GeneralRe: Conversion... Pin
Steve S24-Mar-04 22:05
Steve S24-Mar-04 22:05 
GeneralRe: Conversion... Pin
wb24-Mar-04 22:17
wb24-Mar-04 22:17 
GeneralRe: Conversion... Pin
Anonymous25-Mar-04 0:57
Anonymous25-Mar-04 0:57 
GeneralRe: Conversion... Pin
ravjak25-Mar-04 6:47
ravjak25-Mar-04 6:47 
GeneralProblem with COleDateTime Pin
PravinSingh24-Mar-04 21:40
PravinSingh24-Mar-04 21:40 
GeneralRe: Problem with COleDateTime Pin
Cedric Moonen24-Mar-04 21:48
Cedric Moonen24-Mar-04 21:48 
GeneralRe: Problem with COleDateTime Pin
David Crow25-Mar-04 2:41
David Crow25-Mar-04 2:41 
GeneralEnums Pin
monrobot1324-Mar-04 21:22
monrobot1324-Mar-04 21:22 
GeneralRe: Enums Pin
Anonymous24-Mar-04 21:32
Anonymous24-Mar-04 21: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.