CustomControlClass wont show first instance

This is a discussion on CustomControlClass wont show first instance within the Windows Programming forums, part of the Platform Specific Boards category; hi, due to the cryptic title I'll give an explanation: I've got a Custom Constrol implemented as a class wich ...

  1. #1
    btq
    btq is offline
    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
    btq
    btq is offline
    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, 02: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, 11:49 PM
  4. pointer to an instance of a different class
    By xlix in forum C++ Programming
    Replies: 4
    Last Post: 07-24-2003, 05: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, 12:52 PM

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