Thread: CustomControlClass wont show first instance

  1. #1
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161

    CustomControlClass wont show first instance

    hi, due to the cryptic title I'll give an explanation:
    I've got a Custom Constrol implemented as a class wich works great. I create the control in the call to the class contructor.
    But the thing is when I have:

    MyControlClass one(...); /*creates an instance of the control*/
    MyControlClass two(...);/*creates another instance of the control*/

    , the first doesn't show until you refresh the window in some way(for instance minimize it and the maximize it). Maybe it doesn't get a WM_PAINT message ?

    any inputs on this one ...?

    thanks
    /btq

  2. #2
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    ohhh never mind...a lonely SendMessage had nestled its way in somewhere,somehow,sometime,etc etc..

    /btq

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 05-07-2009, 01:31 AM
  2. sudoku solver
    By manav in forum Game Programming
    Replies: 11
    Last Post: 02-03-2008, 10:38 PM
  3. good show on PBS tonite
    By axon in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 09-15-2004, 10:49 PM
  4. pointer to an instance of a different class
    By xlix in forum C++ Programming
    Replies: 4
    Last Post: 07-24-2003, 04:19 PM
  5. Class function that returns the instance it's called from
    By L Boksha in forum C++ Programming
    Replies: 4
    Last Post: 05-25-2002, 11:52 AM