Click here to Skip to main content
15,894,410 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: MFC CSocketFile Pin
CPallini17-Nov-09 11:43
mveCPallini17-Nov-09 11:43 
Questionstack and atoi Pin
khomeyni17-Nov-09 9:23
khomeyni17-Nov-09 9:23 
AnswerRe: stack and atoi Pin
«_Superman_»17-Nov-09 9:37
professional«_Superman_»17-Nov-09 9:37 
AnswerRe: stack and atoi Pin
CPallini17-Nov-09 11:41
mveCPallini17-Nov-09 11:41 
GeneralRe: stack and atoi Pin
khomeyni18-Nov-09 0:37
khomeyni18-Nov-09 0:37 
AnswerRe: stack and atoi Pin
David Crow18-Nov-09 3:44
David Crow18-Nov-09 3:44 
QuestionAcroPDF Refresh issue Pin
kasi1417-Nov-09 8:36
kasi1417-Nov-09 8:36 
QuestionIs it possible to split CView window with CSpliterWnd just like frame window? Pin
rambojanggoon17-Nov-09 8:20
rambojanggoon17-Nov-09 8:20 
Hi,

Is it possible to split view windows like frame frame window with CSplitterWnd?


class CMyWnd : public CView
{
protected:
    DECLARE_DYNCREATE(CMyWnd)

public:
  CMyWnd(); 
  virtual ~CMyWnd();
  CSplitterWnd m_sp;
};

BOOL CMyWnd::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) 
{
 
  m_sp.Create(this,               1,2,               CSize(10, 10),      
                pContext);
  
	 //CAView is subclass of CView.
 if(!m_sp.CreateView(0, 0,RUNTIME_CLASS(CAview), CSize( 100, 300), pContext))return FALSE;  


	//CCview is subclass of CView.
 if(!m_sp.CreateView(0, 1,RUNTIME_CLASS(CCview), CSize(400, 300), pContext))return FALSE;
 return CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
}



After doing above, to make window  I did as followings.
program die...
Is it possible to split CView window with SplitterWnd?


 CMyWnd *p = new CMyWnd;
 p->Create(NULL, NULL, WS_CHILDWINDOW | WS_CLIPSIBLINGS | WS_OVERLAPPED | WS_VISIBLE|WS_BORDER,
	CRect (10,80, 1280,1024), this, 100, NULL);



 p->ShowWindow(SW_SHOW);

QuestionCoin Change Problem Error Pin
DaliaMagdy17-Nov-09 4:51
DaliaMagdy17-Nov-09 4:51 
AnswerRe: Coin Change Problem Error Pin
mav@octaval17-Nov-09 4:59
mav@octaval17-Nov-09 4:59 
GeneralRe: Coin Change Problem Error Pin
EliottA17-Nov-09 5:27
EliottA17-Nov-09 5:27 
GeneralRe: Coin Change Problem Error Pin
LunaticFringe17-Nov-09 5:31
LunaticFringe17-Nov-09 5:31 
QuestionRe: Coin Change Problem Error Pin
Richard MacCutchan17-Nov-09 5:28
mveRichard MacCutchan17-Nov-09 5:28 
AnswerRe: Coin Change Problem Error Pin
David Crow17-Nov-09 5:51
David Crow17-Nov-09 5:51 
GeneralRe: Coin Change Problem Error Pin
Richard MacCutchan17-Nov-09 6:15
mveRichard MacCutchan17-Nov-09 6:15 
GeneralRe: Coin Change Problem Error Pin
josda100017-Nov-09 5:30
josda100017-Nov-09 5:30 
AnswerRe: Coin Change Problem Error Pin
anollipian17-Nov-09 7:02
anollipian17-Nov-09 7:02 
GeneralRe: Coin Change Problem Error Pin
CPallini17-Nov-09 7:10
mveCPallini17-Nov-09 7:10 
QuestionTransparent lines in C Pin
Rozis17-Nov-09 3:21
Rozis17-Nov-09 3:21 
AnswerRe: Transparent lines in C Pin
Code-o-mat17-Nov-09 3:38
Code-o-mat17-Nov-09 3:38 
GeneralRe: Transparent lines in C Pin
Rozis17-Nov-09 3:56
Rozis17-Nov-09 3:56 
GeneralRe: Transparent lines in C Pin
Code-o-mat17-Nov-09 4:04
Code-o-mat17-Nov-09 4:04 
General[Message Deleted] Pin
KingsGambit17-Nov-09 4:13
KingsGambit17-Nov-09 4:13 
GeneralRe: Transparent lines in C Pin
Code-o-mat17-Nov-09 4:34
Code-o-mat17-Nov-09 4:34 
GeneralRe: Transparent lines in C Pin
Rozis17-Nov-09 5:22
Rozis17-Nov-09 5:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.