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

A

Adrian

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,
 
A

Adrian

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

Adrian

Adrian said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top