Thread: Building a tab custom control

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135
    Make it static
    Code:
    static LPSTR titles[1] = { "test" };
    And do this at the beginning of the windows procedure, prior to processing any messages. If you declare the variable in the switch block, it will only be available within the block that it is declared.
    Last edited by dalek; 03-02-2004 at 08:55 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  2. Tab order in Tab Control
    By Halloko in forum Windows Programming
    Replies: 2
    Last Post: 05-08-2005, 11:08 PM
  3. tab control
    By tyouk in forum Windows Programming
    Replies: 6
    Last Post: 02-07-2005, 11:47 PM
  4. Custom Tab Control
    By PrivatePanic in forum Windows Programming
    Replies: 8
    Last Post: 07-19-2002, 01:23 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM