(nobody)
8/23/2011 9:57:00 AM
"Karl E. Peterson" <karl@exmvps.org> wrote in message
news:j2u4u0$cga$1@dont-email.me...
> Nobody wrote :
>> "Leo" <ttdhead@gmail.com> wrote in message
>> news:j2l6fr$9g3$1@dont-email.me...
>>>I am trying to draw a StatusBar with CreateWindowEx on a UserControl with
>>>the style SBARS_SIZEGRIP. The sizegrip is not showing up. Is it something
>>>to do with the UserControl not being resizeable?
>>
>> Why are you not using the StatusBar control?
>>
>> Anything that is created using the API function CreateWindow(Ex) will not
>> cause Validate event to fire in other controls when you click the
>> API-created control,
>
> Rhetorical question... Would you *want* Validate to fire, if the user is
> merely resizing the window?
>
>> and pressing Tab would skip the API-created control.
>
> Likewise, I've never seen a statusbar or sizer grip that took focus.
> Seems like an odd warning.
I meant this in the general case with API-created controls. I didn't have
time to test if the StatusBar gets focus. From a quick test with the one
that comes with VB6, it seems it causes Validate to fire on other controls,
but the focus never leaves that control, so Validate fires again when you
tab to another control, so it's not a big issue.