Click here to Skip to main content
15,915,086 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Unicode...? Pin
Stephane Rodriguez.28-Oct-02 22:40
Stephane Rodriguez.28-Oct-02 22:40 
GeneralRe: Unicode...? Pin
alex.barylski29-Oct-02 11:30
alex.barylski29-Oct-02 11:30 
AnswerRe: Unicode...? Pin
ian mariano29-Oct-02 1:28
ian mariano29-Oct-02 1:28 
GeneralRe: Unicode...? Pin
Maximilien29-Oct-02 2:18
Maximilien29-Oct-02 2:18 
GeneralRe: Unicode...? Pin
ian mariano29-Oct-02 2:55
ian mariano29-Oct-02 2:55 
AnswerRe: Unicode...? Pin
Paul M Watt29-Oct-02 4:44
mentorPaul M Watt29-Oct-02 4:44 
GeneralRe: Unicode...? Pin
alex.barylski29-Oct-02 11:28
alex.barylski29-Oct-02 11:28 
Questionhow to resize the custom view class? Pin
Anonymous28-Oct-02 22:31
Anonymous28-Oct-02 22:31 
I download a view class and attach it to a CMDIChildWnd class.
when I use like this:
CMultiDocTemplate* pDocTemplate;
pDocTemplate = new CMultiDocTemplate(
IDR_RESOURCE,
RUNTIME_CLASS(CMyDoc),
RUNTIME_CLASS(CChildFrame), // custom MDI child frame
RUNTIME_CLASS(CMyView));
AddDocTemplate(pDocTemplate);
The view class does well.When I resize the CChildFrame,the view also resizes.I think this is normal use.
Now I don't want to use CMyDoc.I use CreateNewChild to create
CMyFrm class,which is created by instructions mentioned in microsoft kb Q201045.Every thing is good until I show the view first like this:
void CMyFrm::ActivateFrame(int nCmdShow)
{
// TODO: Add your specialized code here and/or call the base class
CRect clientRect;
this->GetClientRect(&clientRect);

m_pView = new CMyView();
if(! m_pView->Create(NULL, NULL, WS_VISIBLE |WS_CHILD, clientRect,this, 1234))
{
TRACE( "Failed view creation\n" );
return ;
}
CMDIChildWnd::ActivateFrame(nCmdShow);
}
Now then I resize the CMyFrm,I clicke the max icon ,the frame maximizes,but the view leaves unchanged.I trace the program and find when I click the max icon,the onsize event of view doesn't trigger.
Any help will be appreciated!
GeneralVariable / fixed width font issues Pin
alex.barylski28-Oct-02 22:28
alex.barylski28-Oct-02 22:28 
Generalfetching printer information in mfc Pin
Anonymous28-Oct-02 21:57
Anonymous28-Oct-02 21:57 
QuestionWhy gethostbyaddr() doesn't work for dial-up client? Pin
Wenrich28-Oct-02 21:33
Wenrich28-Oct-02 21:33 
AnswerRe: Why gethostbyaddr() doesn't work for dial-up client? Pin
Anonymous29-Oct-02 0:59
Anonymous29-Oct-02 0:59 
AnswerRe: Why gethostbyaddr() doesn't work for dial-up client? Pin
ian mariano29-Oct-02 1:38
ian mariano29-Oct-02 1:38 
GeneralEdit control question Pin
alex.barylski28-Oct-02 20:43
alex.barylski28-Oct-02 20:43 
GeneralRe: Edit control question Pin
Anonymous29-Oct-02 0:57
Anonymous29-Oct-02 0:57 
GeneralRe: Edit control question Pin
alex.barylski29-Oct-02 11:34
alex.barylski29-Oct-02 11:34 
QuestionHow to copy data within first text file to second text file (use CStdioFile) Pin
ooosawaddee328-Oct-02 18:23
ooosawaddee328-Oct-02 18:23 
AnswerRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Christian Graus28-Oct-02 18:36
protectorChristian Graus28-Oct-02 18:36 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
ooosawaddee328-Oct-02 19:02
ooosawaddee328-Oct-02 19:02 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Christian Graus28-Oct-02 19:20
protectorChristian Graus28-Oct-02 19:20 
GeneralRe: How to copy data within first text file to second text file (use CStdioFile) Pin
Joaquín M López Muñoz28-Oct-02 20:31
Joaquín M López Muñoz28-Oct-02 20:31 
GeneralCFormView and CTabCtrl :: MFC Pin
valikac28-Oct-02 18:06
valikac28-Oct-02 18:06 
GeneralRe: CFormView and CTabCtrl :: MFC Pin
super29-Oct-02 1:55
professionalsuper29-Oct-02 1:55 
GeneralRe: CFormView and CTabCtrl :: MFC Pin
valikac29-Oct-02 4:31
valikac29-Oct-02 4:31 
Generalvb program rune fine but the same gives error in VC++ Pin
Anonymous28-Oct-02 18:07
Anonymous28-Oct-02 18:07 

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.