Thread: Custom controls

  1. #1

    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,829
    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
    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
    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, 01:41 PM
  4. Custom Controls
    By Mithoric in forum Windows Programming
    Replies: 6
    Last Post: 12-21-2003, 10: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-07-2003, 12:59 AM