|
-
Oct 1st, 2006, 05:09 AM
#1
Thread Starter
Addicted Member
Notepad Find Dialog
Hello,
The notepad Find dialog can gain focus + loose focus and visually stay on top of the main application. I would like to do this, but it's not clear how. If anyone can assist, I am all ears!
Thanks.
-
Oct 1st, 2006, 01:45 PM
#2
Re: Notepad Find Dialog
My guess is that it simply has the TOPMOST style/status. I forgot what exactly it is.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 1st, 2006, 02:03 PM
#3
-
Oct 1st, 2006, 02:04 PM
#4
Re: Notepad Find Dialog
That would be the SetWindowPos() function in pure Win32 API if you're not using MFC.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 1st, 2006, 09:01 PM
#5
Thread Starter
Addicted Member
Re: Notepad Find Dialog
There may be a bit more too it. While SetWindowPos (MFC or Win32) can put a window 'on top', the MS find dialog stays on top of the application only and lets the user manipulate the application itself while the dialog is up. Any more tricks out there?
-
Oct 1st, 2006, 10:58 PM
#6
Re: Notepad Find Dialog
 Originally Posted by Crunchy Cat
There may be a bit more too it. While SetWindowPos (MFC or Win32) can put a window 'on top', the MS find dialog stays on top of the application only and lets the user manipulate the application itself while the dialog is up. Any more tricks out there?
Ohh, in VB6, it's like:
VB Code:
Form2.Show vbModeLess, Me
I am not sure about C++, maybe someone else could tell you.
-
Oct 2nd, 2006, 02:04 AM
#7
Re: Notepad Find Dialog
Use the CreateDialog family of functions instead of the DialogBox family to create the dialog. This creates modeless instead of modal dialogs. You might have to adapt your message loop to work with this; make sure you call the IsDialogMessage function correctly.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|