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

[OWL] 請問我想在螢幕上開兩個視窗?

0 views
Skip to first unread message

嘿暮 ! 嘿暮 !

unread,
Mar 3, 1997, 3:00:00 AM3/3/97
to

==> 於 (b350...@cctwin.ee.ntu.edu.tw) 文中述及:
: 我希望在 95 的桌面上同時開兩個視窗,
: 於是我就用 OWL 寫:
: class TMyApp : TApplication
: {
: public:
: TMyApp() : TApplication() {}
: void InitMainWindow()
: {
: pWin=new TFrameWindow(0, "Win1");
: SetMainWindow(pWin1);
: pWin=new TFrameWindow(0, "Win2");
: SetMainWindow(pWin2);
: }
: protected:
: TFrameWindow pWin1, pWin2;
: };
: void OwlMain(int, char* [])
: {
: TMyApp myApp;
: return myApp.Run();
: }
: 結果螢幕上只有 Win2, 而沒有 Win1.... 怎麼辦呢?

據我所知 MainFrameWindows 只能有一個

client window 才可以有很多個

所以您的 win2 蓋調了 win1

不知道屁的對不對

不對的話請炮轟我

讓我清醒清醒!

不勝敢激!!
--
陳文暉
ID:OS2
wwc...@auto.fcu.edu.tw
鳳山市建國路一段377巷9號
電話: 不給
生日: 不給
[mΞ Origin: 逢甲蒼穹資訊網 <bbs.fcu.edu.tw> [FROM: berry.cc-sun.fc]

b350...@cctwin.ee.ntu.edu.tw

unread,
Mar 4, 1997, 3:00:00 AM3/4/97
to

嘿暮 ! 嘿暮 ! (OS2...@gopher.fcu.edu.tw) 提到:
: ==> 於 (b350...@cctwin.ee.ntu.edu.tw) 文中述及:

: : 我希望在 95 的桌面上同時開兩個視窗,
: : 於是我就用 OWL 寫:

我後來試:


void InitMainWindow()
{
pWin=new TFrameWindow(0, "Win1");
SetMainWindow(pWin1);

pWin=new TFrameWindow(0, "Win2");
pWin->Create(); // 不確定是否需要.
pWin->Show(SW_SHOWDEFAULT);
}

如果想在一般的 TWindow 中開一個附屬的視窗,
就 override SetupWindow() , 在 SetupWindow() 中執行過父類別的
SetupWindow 之後再 Create() 附屬視窗.
..... 試得我灰頭土臉的....

: 據我所知 MainFrameWindows 只能有一個
好像是的.

: client window 才可以有很多個
好像也只有一個 client area, 裏面有多個 Window,
雖有附屬關係, 只是不用 "client" 這個詞吧;
或替 Frame Window 設一個 client window,
裡面亂搞...

: 不知道屁的對不對
: 不對的話請炮轟我
: 讓我清醒清醒!
: 不勝敢激!!
這些話也順便借我用了;
我是貓頭鷹新手, 也是鎂氟寶新新新手, 請多包函...

0 new messages