Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tring to get dialog to use WS_EX_NOACTIVATE for VC++6.0

7 views
Skip to first unread message

Adrian

unread,
Jun 26, 2009, 7:38:01 AM6/26/09
to

I need a simple dialog with nothing on it (can't get simpler than that). I am
fighting with this antiquated system using VC++6.0/MFC and LabVIEW 7.0. When
I try and create a Tooltip in the OCX that is going into LV, it doesn't show
up.

I then proceeded to do a lot of things (including a lot of swearing). I
finally faked out a tooltip by way of a dialog generated by a resource, but I
cannot get it to recognize the WS_EX_NOACTIVATE so that it doesn't grab
focus (version of MFC I have doesn't even know that windows style so I had to
insert #define WS_EX_NOACTIVATE 0x08000000L into my code). THIS IS THE VERY
LAST THING I NEED TO DO! I will be leaving for holidays on Saturday and
REALLY need this working before then.

I tried to use to use the WM_CREATE message handler, modify the
lpCreateStruct->dwExStyle |= WS_EX_NOACTIVATE, but then it would give random
behavior.

I really thank you for any help you can give me,

Adrian

unread,
Jun 26, 2009, 7:55:01 AM6/26/09
to

Could it be that I have to handle the message? If so, in what way?

Thanks

Adrian

unread,
Jun 26, 2009, 11:10:02 AM6/26/09
to

I've also trued PreCreateWindow() but it isn't even called! :( I really hate
MFC and its inconsistencies!

Adrian

unread,
Jun 26, 2009, 12:14:02 PM6/26/09
to


"Adrian" wrote:

> I've also trued PreCreateWindow() but it isn't even called! :( I really hate
> MFC and its inconsistencies!

Also put into the rc file under my dialog:

EXSTYLE WS_EX_TOPMOST | WS_EX_TOOLWINDOW | 0x8000000L

Does anyone have any idea?

0 new messages