Click here to Skip to main content
15,899,025 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Learning MFC Pin
Alessandra779-Feb-07 8:03
Alessandra779-Feb-07 8:03 
GeneralRe: Learning MFC Pin
Hamid_RT9-Feb-07 8:15
Hamid_RT9-Feb-07 8:15 
AnswerRe: Learning MFC Pin
Mark Salsbery9-Feb-07 8:20
Mark Salsbery9-Feb-07 8:20 
GeneralRe: Learning MFC Pin
Ravi Bhavnani9-Feb-07 8:48
professionalRavi Bhavnani9-Feb-07 8:48 
GeneralRe: Learning MFC Pin
led mike9-Feb-07 9:09
led mike9-Feb-07 9:09 
AnswerRe: Learning MFC Pin
Ravi Bhavnani9-Feb-07 8:53
professionalRavi Bhavnani9-Feb-07 8:53 
AnswerRe: Learning MFC Pin
Kevin McFarlane9-Feb-07 12:51
Kevin McFarlane9-Feb-07 12:51 
QuestionNeed help with all new type of control [modified] Pin
Daemon Black9-Feb-07 6:32
Daemon Black9-Feb-07 6:32 
I'm working on a GUI editor for a video game. The GUI items (buttons, images, etc) are simply a hierarchy of simple rectangle regions.

I need to create a C++ MFC Tool Window that displays the hierarchy. I know what you're thinking "use a tree control". The problem is that:
1) the hierarchy may get very deep; which causes ugly horizontal scrolling.
2) each item needs custom display options to toggle visibility of the item in the main view.
3) It also needs to render additional icons next to the text to show status information. Some status icons might be things like "item has script attached to it", or "item has events attached to it".
4) I need to select multiple items from the control at a time (like a list box)

The closest thing I can relate it to would be Photoshop's Layer View Window. The key difference would be that I need to display the items as a hierarchy.

I implemented a version of this control as a list box and simply inserted space characters for child items to display the hierarchy (based on recursive depth). This worked OK but had all kinds of update issues and bad refreshes, and inaccurate displays of which items were actually "selected". It sucked...

I also couldn't use any of my accelerators that were attached to the main window frame because the tool window had focus.. But that's likely another issue all together..

HELP! Has anyone implemented something like this? Frown | :(


-- modified at 12:40 Friday 9th February, 2007
AnswerRe: Need help with all new type of control Pin
James R. Twine9-Feb-07 8:06
James R. Twine9-Feb-07 8:06 
GeneralRe: Need help with all new type of control Pin
Daemon Black9-Feb-07 8:40
Daemon Black9-Feb-07 8:40 
GeneralRe: Need help with all new type of control Pin
Daemon Black9-Feb-07 16:18
Daemon Black9-Feb-07 16:18 
Questionstarting an exe file in main() [modified] Pin
Maddack9-Feb-07 4:42
Maddack9-Feb-07 4:42 
AnswerRe: starting an exe file in main() Pin
jhwurmbach9-Feb-07 5:01
jhwurmbach9-Feb-07 5:01 
AnswerRe: starting an exe file in main() Pin
Waldermort9-Feb-07 5:22
Waldermort9-Feb-07 5:22 
AnswerRe: starting an exe file in main() Pin
Eytukan9-Feb-07 5:56
Eytukan9-Feb-07 5:56 
AnswerRe: starting an exe file in main() Pin
Hamid_RT9-Feb-07 6:02
Hamid_RT9-Feb-07 6:02 
AnswerRe: starting an exe file in main() Pin
Michael Dunn9-Feb-07 11:02
sitebuilderMichael Dunn9-Feb-07 11:02 
AnswerRe: starting an exe file in main() Pin
Sethuraman.K9-Feb-07 22:29
Sethuraman.K9-Feb-07 22:29 
QuestionChange layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:09
bosfan9-Feb-07 3:09 
QuestionRe: Change layout for standard SaveAs dialog? Pin
David Crow9-Feb-07 3:14
David Crow9-Feb-07 3:14 
AnswerRe: Change layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:30
bosfan9-Feb-07 3:30 
AnswerRe: Change layout for standard SaveAs dialog? Pin
James R. Twine9-Feb-07 3:23
James R. Twine9-Feb-07 3:23 
GeneralRe: Change layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:31
bosfan9-Feb-07 3:31 
AnswerRe: Change layout for standard SaveAs dialog? Pin
Ravi Bhavnani9-Feb-07 3:26
professionalRavi Bhavnani9-Feb-07 3:26 
GeneralRe: Change layout for standard SaveAs dialog? Pin
bosfan9-Feb-07 3:59
bosfan9-Feb-07 3:59 

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.