When we add some controls to create a new costumered CFileDialog, it's hard to nevigate to the new added controls by pressing tab key.The solution is to add WS_EX_CONTROLPARENT to the dialog, Cool!From MSDN,(it's about DS_CONTROL , but
20041206:when should NOT we call the base class's corresponding function?void CDropDownBotton::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) { // TODO: Add your message handler code here and/or call default if(nChar == VK_RETURN || nChar ==
It's only the fairy tale 只是傳說 Who are those little girls in pain? 那些正在痛苦的小女孩是誰? Just trapped in castle of dark side of moon 她們被捕獲到月亮背面的黑暗城堡 Twelve of them shining bright in vain 這十二個小女孩徒然地放出光彩 Like flowers that blossom just once in years
object.insertAdjacentHTML(sWhere, sText) Parameters sWhere Required. String that specifies where to insert the HTML text, using one of the following values: beforeBegin Inserts sText immediately before
舉例證明:在mfc8中,void CFrameWnd::OnClose(){ if (m_lpfnCloseProc != NULL) (*m_lpfnCloseProc)(this); // Note: only queries the active document CDocument* pDocument = GetActiveDocument(); ... ...而在mfc4.2中,void CFrameWnd::OnClose(){ if (m_lpfnCloseProc !=
在函數BOOL CreateView( int row, int col, CRuntimeClass* pViewClass, SIZE sizeInit, CCreateContext* pContext );中,有一個參數CCreateContext* pContext,裡面有當前的document的指標而在CView的OnCreate中: // if ok, wire in the current document ASSERT(m_pDocument ==