|
H/PC Elder Posts: | 1,712 |
Location: | New Mexico, US | Status: | |
| Microsoft Windows CE 3.0: How To Create a Topmost or Floating Window in Visual Basic
These two KB articles may not be specific to HPC platform
BUG: SetWindowPos API Does Not Set Topmost Window in VB
http://support.microsoft.com/default.aspx?scid=kb;en-us;192254
How To Make a Form a Topmost Window Using APIs
http://support.microsoft.com/default.aspx?scid=kb;en-us;195516
Also note
Quote NOTE:
Visual Basic forms that are TopMost Windows when they are in either
Normal or Maximized positions will lose the Topmost setting when the
Visual Basic program is Minimized. Visual Basic destroys the old window
and creates a new one with the Icon in the Window. Therefore, in order
for TopMost to stay in effect, the user needs to reset TopMost in the
Resize event.
I noticed that you have the HWND_TOPMOST flag defined but not used anywhere.
You may also want to call
BOOL SetWindowPos (
HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags );
with HWND_TOPMOST for hWndInsertAfter. You can use this API to position your window for max size at the same time.
SetWindowPos on MSDN.
Note that some of the msdn references are not specific to HPC, but do apply
in any case.From what I know, SetForeGround will only work among non-topmost app. eg would be Task Manager which is set to topmost. When you try run some apps, it will run and try to SetForeGround, but still be below the TaskMgr. Edited by Snappy! 2005-02-14 6:10 PM
|
|
|
|
Subscribers H/PC Vanguard Posts: | 3,685 |
Location: | Japan | Status: | |
| Wow. Fast reply
When I get back from school today, I'll edit the code and I'll put up a distribution WITH the source code. Thankyou!
|
|
|
|
H/PC Elder Posts: | 1,712 |
Location: | New Mexico, US | Status: | |
| I realised that MY LABEL don't seem to work right. The final html code becomes
<a href="http://www.hpcfactor.com/forums/forums/"MYSITE.com"">MY LABEL</a>
Can someone help me here? I don't want to expand the width of the page with the long msdn KB article query. |
|
|
|
Administrator H/PC Oracle Posts: | 18,005 |
Location: | United Kingdom | Status: | |
| [ url=http://...com/]TEXT[ /URL]
Must have the http and no spaces inside the [ ]'s |
|
|
|
H/PC Elder Posts: | 1,712 |
Location: | New Mexico, US | Status: | |
| Thanks!
Reposting with the corrected URLs ...
Microsoft Windows CE 3.0: How To Create a Topmost or Floating Window in Visual Basic
These two KB articles may not be specific to HPC platform
BUG: SetWindowPos API Does Not Set Topmost Window in VB
http://support.microsoft.com/default.aspx?scid=kb;en-us;192254
How To Make a Form a Topmost Window Using APIs
http://support.microsoft.com/default.aspx?scid=kb;en-us;195516
Also note
Quote NOTE:
Visual Basic forms that are TopMost Windows when they are in either
Normal or Maximized positions will lose the Topmost setting when the
Visual Basic program is Minimized. Visual Basic destroys the old window
and creates a new one with the Icon in the Window. Therefore, in order
for TopMost to stay in effect, the user needs to reset TopMost in the
Resize event.
I noticed that you have the HWND_TOPMOST flag defined but not used anywhere.
You may also want to call
BOOL SetWindowPos (
HWND hWnd, HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags );
with HWND_TOPMOST for hWndInsertAfter. You can use this API to position your window for max size at the same time.
SetWindowPos on MSDN.
Note that some of the msdn references are not specific to HPC, but do apply
in any case.From what I know, SetForeGround will only work among non-topmost app. eg would be Task Manager which is set to topmost. When you try run some apps, it will run and try to SetForeGround, but still be below the TaskMgr. |
|
|
|
H/PC Elder Posts: | 1,712 |
Location: | New Mexico, US | Status: | |
| Corrected URL ...
Microsoft Windows CE 3.0: How To Create a Topmost or Floating Window in Visual Basic
Things are just so not going my way today! Edited by Snappy! 2005-02-14 8:45 PM
|
|
|
|
Subscribers H/PC Vanguard Posts: | 3,685 |
Location: | Japan | Status: | |
| Argh... a VB bug... and the procedures on the micrrosfoft site doensn't work..
http://www.innovativedss.com/Resource/HideTaskBar.asp <- good function of hiding taskbar, but still has bugs.
Still looking... and debugging. Edited by stingraze 2005-02-15 3:56 AM
|
|
|
|
Subscribers H/PC Vanguard Posts: | 3,685 |
Location: | Japan | Status: | |
| Yippy!!!!! YES!! This time, I bet it'll work.....
The function I found here worked with some fixes: http://www.innovativedss.com/Resource/HideTaskBar.asp
This version still has some errors, but I forced eVB to ignore then by
"On Error Resume Next"
The error was "Variable not Defined "Me_"
Hope it works this time! this is the 3rd build...
here's the latest updated version with eVB source code.
Download URL: http://www.geocities.jp/keaglewing/software/HpcScreenSaver2.zip
now. off to homework lol ! Edited by stingraze 2005-02-15 4:39 AM
|
|
|
|
Subscribers H/PC Vanguard Posts: | 3,685 |
Location: | Japan | Status: | |
| Please don't download the file to your device, it is bugged with a bug that you'll not be able to put the taskbar again. please use it at your own risk.
Soft resetting will bring the taskbar again....
Edited by stingraze 2005-02-15 5:19 AM
|
|
|
|
H/PC Elder Posts: | 1,712 |
Location: | New Mexico, US | Status: | |
| woo hoo ... sounds like a *virus* in the making ... hehe ... just kidding ...
Due to the time zone difference, I have not tried the latest build yet ... ...
|
|
|
|
Subscribers H/PC Vanguard Posts: | 3,685 |
Location: | Japan | Status: | |
| I finally got it ALL fixed. (at least on my device and emulator )
http://www.geocities.jp/keaglewing/software/HpcScreenSaver4.zip
Now, it's bug free... (4th build! )
Edited by stingraze 2005-02-15 4:48 PM
|
|
|
|
Administrator H/PC Oracle Posts: | 18,005 |
Location: | United Kingdom | Status: | |
| Good job.
Slight issue on the VGA still. (hpcscreensaver-vga.gif) Attachments ---------------- hpcscreensaver-vga.gif (11KB - 16 downloads) |
|
|
|
Subscribers H/PC Vanguard Posts: | 3,685 |
Location: | Japan | Status: | |
| Roger. Will produce a VGA version later on today. |
|
|
|
Subscribers H/PC Vanguard Posts: | 3,685 |
Location: | Japan | Status: | |
| The new zipped file contains the VGA build.
When you decompress, there will be a folder named "VGA" that's where the VGA build is (cab files )
http://www.geocities.jp/keaglewing/software/HpcScreenSaver_wvga.zip
Good Luck.! |
|
|
|
H/PC Elder Posts: | 1,712 |
Location: | New Mexico, US | Status: | |
| Gee ... Stingraze ... did I tell you I am impressed by your coding speed? ... No? ok, I'm impressed by your coding speed! We should put our heads together and get dillo ported to HPC!!
|
|
|