🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: fj.lang.visualbasic
5 messages
5 total messages Started by yamazaki Wed, 08 Apr 1998 00:00
$BFCDj$N%&%#%s%I%&$r>o$K<jA0$KI=<($9$k$K$O!)(J
#266
Author: yamazaki
Date: Wed, 08 Apr 1998 00:00
7 lines
586 bytes
$B$O$8$a$^$7$F!#(Jyamazaki$B$G$9!#(J

$BFCDj$N%&%$%s%I%&$r>o$K0lHV<jA0$KI=<($9$kJ}K!$rC5$7$F$$$^$9!#(J

$B$4B8CN$G$7$?$i!"65$($F$/$@$5$$!#(J
$B$h$m$7$/$*4j$$$7$^$9!#(J
Re: 特定のウィンドウを常に手前に表示するには?
#267
Author: Sato Masahiro
Date: Wed, 08 Apr 1998 00:00
11 lines
1148 bytes
In article <01bd6291$ea942800$6b78f8ca@raccoon.carrot.co.jp>, yamazaki wrote:
>特定のウインドウを常に一番手前に表示する方法を探しています。

Visual Basic のサンプルプログラム群に“CALLDLLS”というプロジェクトが
含まれているならば、この中に「常に手前に表示」のサンプルが含まれて
いると記憶していますので、調べてみてはいかがでしょうか?

-- 
Computer Institute of Japan, Ltd.
佐藤正宏 masahiro@cij.co.jp
Re: 特定のウィンドウを常に手前に表示するには?
#268
Author: Masaaki Suga
Date: Wed, 08 Apr 1998 00:00
71 lines
2585 bytes
やまざきさん、こんにちわ。
正確なタイトルは忘れてしまいましたが、「VisualBasicテクニック
ライブラリ」
とかいう本に出ていた手法です。お役に立つでしょうか?

--------------------------------------------------

' SetWindowPos() のフラグ
Private Const SWP_NOSIZE = &H1
Private Const SWP_NOMOVE = &H2
Private Const SWP_NOZORDER = &H4
Private Const SWP_NOREDRAW = &H8
Private Const SWP_NOACTIVATE = &H10
Private Const SWP_FRAMECHANGED = &H20
Private Const SWP_SHOWWINDOW = &H40
Private Const SWP_HIDEWINDOW = &H80
Private Const SWP_NOCOPYBITS = &H100
Private Const SWP_NOOWNERZORDER = &H200
Private Const SWP_DRAWFRAME = SWP_FRAMECHANGED
Private Const SWP_NOREPOSITION = SWP_NOOWNERZORDER

' SetWindowPos() hWndInsertAfter の値
Private Const HWND_TOP = 0
Private Const HWND_BOTTOM = 1
Private Const HWND_TOPMOST = -1
Private Const HWND_NOTOPMOST = -2

Private Declare Function SetWindowPos _
Lib "user32" ( _
    ByVal hwnd As Long, _
    ByVal hWndInsertAfter As Long, _
    ByVal x As Long, _
    ByVal y As Long, _
    ByVal cx As Long, _
    ByVal cy As Long, _
    ByVal wFlags As Long _
) As Long

Private Sub Form_Load()
    '   このフォームを一番手前に設定
    SetWindowPos hwnd, HWND_TOPMOST, _
        0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
    Debug.Print "Load Form...Done"
End Sub

Private Sub Form_Unload(Cancel As Integer)
    '   一番手前設定を解除
    SetWindowPos hwnd, HWND_NOTOPMOST, _
        0, 0, 0, 0, SWP_NOMOVE Or SWP_NOSIZE
    Debug.Print "Unload Form...Done"
End Sub
--------------------------------------------------



yamazaki wrote:

> はじめまして。yamazakiです。
>
> 特定のウインドウを常に一番手前に表示する方法を探しています。
>
> ご存知でしたら、教えてください。
> よろしくお願いします。



--
Masaaki Suga
from Tokyo Japan
mailto: masa_sug@tka.att.ne.jp
Re: 特定のウィンドウを常に手前に表示するには?
#269
Author: Tetsuya Hoshino
Date: Wed, 08 Apr 1998 00:00
16 lines
1188 bytes
<01bd6291$ea942800$6b78f8ca@raccoon.carrot.co.jp>において
yamazaki@carrot.co.jpさんはおっしゃいました...
>特定のウインドウを常に一番手前に表示する方法を探しています。

http://www.asia.microsoft.com/japan/developer/vbasic/techinfo/
から辿れる
http://www.asia.microsoft.com/japan/developer/vbasic/FAQ/programfaq.htm
にヒントが載っています。

# 最低でもこういう公式FAQくらいは覗いてから質問すべきですよ :-)

-- 
日揮情報システム株式会社 星野 哲也
    official address : thoshino@jsys.co.jp
    personal address : hoshino@imasy.or.jp
Re: 特定のウィンドウを常に手前に表示するには?
#272
Author: Ishii Yoshihisa
Date: Wed, 08 Apr 1998 00:00
11 lines
935 bytes
<01bd6291$ea942800$6b78f8ca@raccoon.carrot.co.jp>の記事において  yamazaki 
さんは書きました...
>特定のウインドウを常に一番手前に表示する方法を探しています。

win32 APIのSetWindowPos関数を使うと最前面に表示できます。

-- 
Ishii Yoshihisa  komagane-city nagano
yoshih@janis.or.jp
-------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads