CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Custom GUI

  1. #1
    Join Date
    Oct 2003
    Location
    Toronto, ON
    Posts
    88

    Custom GUI

    Hello everyone...

    I want to develop an application that uses a custom GUI, as in, not the default look of windows. I'm familiar enough with the standard windows GUI and writing applications for it but this time I need some additional functionality. The program I'm writing will need to have a similar GUI as programs such as Cubase SX, Propellerheads Reason, or Sonic Foundry SoundForge. The layout will look something like this:

    1. A panel for audio tracks in which I can display a waveform (and scroll along of course)
    2. A keyboard view (scrollable, resizeable)
    3. A transport panel
    4. All buttons, scroll bars, etc. are custom looking, ei. not the default windows look

    Here is my problem: I don't know what the best way to do this is. Of course one could always just make a DirectDraw window and draw everything using a double buffer but that would be terribly inefficient for a large window, so I basically just need a starting point for how to do it from someone who perhaps has done this sort of thing before.

    Regards, Phil


    Here is an example of the sort of gui I'm talking about:
    Last edited by Phil303; October 29th, 2003 at 04:21 PM.

  2. #2
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    There is no need to use DirectDraw here. For your various panels, as well at the buttons and other controls, you can use custom-draw versions of standard controls. Then you use GDI to draw them as you need.

  3. #3
    Join Date
    Oct 2003
    Location
    Toronto, ON
    Posts
    88
    Would you then suggest using MFC or just create a standard Win32 App?

  4. #4
    Join Date
    Sep 2000
    Location
    Munich (Germany)
    Posts
    764
    MFC would make your life easier.
    Do you develop for PocketPCs? Try this tool for CeDatabases

    CeDatabase Manager 2.0

  5. #5
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815
    Originally posted by Indian_Techie
    MFC would make your life easier.
    Yes, definitely. And having now seen the screenshot you added, you would probably use a CScrollView for the audio track panel (and not a control, as I first suggested).

  6. #6
    Join Date
    Oct 2003
    Location
    Toronto, ON
    Posts
    88
    Excellent, thanks for the help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured