- 追加された行はこの色です。
- 削除された行はこの色です。
#contents
*Visual C++ 関連情報 [#t4a65e4f]
**MFC 関連情報 [#u00e4cd7]
***DOC/View [#xa22f021]
-SDI で Doc/View を使わない方法。
--AppWizard で「ドキュメント/ビュー アーキテクチャのサポート」のチェックをはずす。
---------------------------------------------------------
MFC AppWizard - ステップ 1
---------------------------------------------------------
作成するアプリケーションの種類」
(*) SDI
( ) MDI
( ) ダイアログベース
[ ] ドキュメント/ビュー アーキテクチャのサポート
---------------------------------------------------------
-Doc/View はアーキテクチャは使わないが View のみを使う場合。
--CListView を用いる方法
上記のウィザードを実行した後、以下のような修正を行う。
(CListView は new で構築してあげないと、ウィンドウ閉じるときに delete this で落ちる。)
#code c++
// ChildView.h
//class CChildView : public CWnd
class CChildView : public CListView
{
CChildView();
DECLARE_DYNCREATE(CChildView) // 追加
};
// ChildView.cpp
IMPLEMENT_DYNCREATE(CChildView, CListView) // 追加
// MainFrm.h
class CMainFrame : public CFrameWnd
{
// CChildView m_wndView;
CChildView* m_pWndView;
};
// MainFrm.cpp
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
return -1;
/*
if (!m_wndView.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,
CRect(0, 0, 0, 0), this, AFX_IDW_PANE_FIRST, NULL))
{
TRACE0("Failed to create view window\n");
return -1;
}
*/ [#xdebfb4e]
m_pWndView = (CChildView*)RUNTIME_CLASS(CChildView)->CreateObject();
if (!m_pWndView->Create(NULL, NULL, AFX_WS_DEFAULT_VIEW,
CRect(0, 0, 0, 0), this, AFX_IDW_PANE_FIRST, NULL))
{
TRACE0("Failed to create view window\n");
return -1;
}
}
#end
-ドキュメント/ビューを使わない場合のCView
--http://forums.belution.com/ja/vc/000/105/89s.shtml
- MKzW2Z <a href="http://afpuiuxnlfbs.com/">afpuiuxnlfbs</a>, [url=http://powkeiynunla.com/]powkeiynunla[/url], [link=http://igznkqvtyslg.com/]igznkqvtyslg[/link], http://ymzxsfrmbktn.com/ -- [[lmlgxwypkza]] &new{2011-12-24 (土) 00:43:24};
- d13pur <a href="http://blkfedorpogg.com/">blkfedorpogg</a>, [url=http://mtyxooqwwnaa.com/]mtyxooqwwnaa[/url], [link=http://ftsqptuayfww.com/]ftsqptuayfww[/link], http://qngtavqrmddx.com/ -- [[dlvxokgkbf]] &new{2011-12-25 (日) 18:48:57};
- comment4, http://www.pozytywka.bielsko.pl/galeria,11.html viagra, ykv, http://www.pozytywka.bielsko.pl/referencje,12.html cena cialis, %[[, http://www.pozytywka.bielsko.pl/atrakcje,14.html levitra, 906352, http://www.vipsolutions.hu/ cialis, %-OO, http://www.kocasting.cz/ viagra cena, 96671, -- [[Eubiiyxg]] &new{2011-12-26 (月) 10:06:11};
- comment1, http://utsbms.mitra.org.au/ viagra australia online, yng, http://www.gmia.com.au/ cialis, ath, http://pennanino.com/ levitra, %(((, -- [[Ykpvvxmd]] &new{2011-12-27 (火) 07:31:58};
- comment4, http://statewideit.iu.edu/accommodations/ cialis 20mg, vvytym, -- [[Cuiurtmj]] &new{2011-12-27 (火) 13:15:27};
- comment3, http://www.cbi.msstate.edu/faculty/shim/ cialis 20mg, :[, -- [[Rpeemumc]] &new{2011-12-27 (火) 13:16:59};
- comment3, http://linc.cs.vt.edu/papers/2000/HeNeIsCa-Logging-HFES/ viagra without prescription, 638359, http://linc.cs.vt.edu/papers/2000/CaRoIsVaScGa-MOOsburg-INC/ cialis without prescription, 50534, http://qcenter.uconn.edu/Wiki/pmwiki.php buy generic viagra, 742715, -- [[Abdnqwbm]] &new{2011-12-30 (金) 11:02:37};
- comment3, http://www.rose-hulman.edu/~minster/ viagra price, 9675, -- [[Zsbqflnx]] &new{2011-12-31 (土) 17:46:56};
- comment6, http://blogs.clarkson.edu/ levitra online, 8-(, -- [[Ftrdmxep]] &new{2011-12-31 (土) 20:00:36};
- comment3, http://mstream.ucsd.edu/subsequent_years.php cialis online, 8OO, -- [[Sdhbvteh]] &new{2011-12-31 (土) 20:04:11};
- OF6R1g <a href="http://jcumeghqoith.com/">jcumeghqoith</a>, [url=http://oomrpncsqgtb.com/]oomrpncsqgtb[/url], [link=http://ngxssimnzxsq.com/]ngxssimnzxsq[/link], http://dwmahyniubao.com/ -- [[hbkriphddv]] &new{2012-01-01 (日) 19:37:38};
- comment5, http://fox.cs.vt.edu/DL96/ viagra, 8O, -- [[Mhuftsnk]] &new{2012-01-02 (月) 17:13:15};
#comment