Announcement

Collapse
No announcement yet.

Tab Control Callback Lessons Learned (DDT)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tab Control Callback Lessons Learned (DDT)

    I'm working on a project that requires a Tab Control for which I created callbacks for each tab. I wanted to %EM_SETLIMITTEXT some edit controls within one Tab Page... and then the fun began [sarcasm].

    Tab Page callbacks, like a Dialog, receive %WM_INITDIALOG from where you can do some initialization steps, which I thought was a very good place to do it. A hard lesson learned was that the initialization happens AT PAGE CREATION, which is BEFORE the controls are added.

    Logically this makes complete sense, but being so used to the way %WM_INITDIALOG works in Dialogs I didn't even think about it until after an hour lost to troubleshooting.
    <b>George W. Bleck</b>
    <img src='http://www.blecktech.com/myemail.gif'>
Working...
X