Custom controls

This is a discussion on Custom controls within the Windows Programming forums, part of the Platform Specific Boards category; How can I make a completely custom control? I'm using api. I know how to do owner draw stuff but ...

  1. #1
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293

    Custom controls

    How can I make a completely custom control? I'm using api.

    I know how to do owner draw stuff but that is becoming a hassel because I have to switch between different values stored in the control to decide how it will be drawn.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    A control is simply a window - so you could use CreateWindow(). Of course, you needn't even do that, if you are handling the drawing of you main window, you could just plop a bitmap where you want your control to be.

    Many ways forward really.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Hrmm ... Alright. I think I know what to do, but it won't be easy.
    I'll have a try, most likely I'll be back.

  4. #4
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    Well I have it working, although it doesn't look pretty yet it's still there.

    Thanks a bunch.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unable to remotly register my custom controls.
    By Yarin in forum Windows Programming
    Replies: 8
    Last Post: 08-13-2007, 12:20 PM
  2. custom controls
    By eXistenZ in forum Windows Programming
    Replies: 5
    Last Post: 04-18-2005, 06:09 AM
  3. Creating Custom Controls
    By Grayson_Peddie in forum C# Programming
    Replies: 1
    Last Post: 12-29-2003, 12:41 PM
  4. Custom Controls
    By Mithoric in forum Windows Programming
    Replies: 6
    Last Post: 12-21-2003, 09:09 PM
  5. I need help disabling Keyboard and Mouse input on Edit controls
    By Templario in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2003, 11:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21