Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to read flash drive type reader? Pin
Richard MacCutchan13-Mar-12 0:47
mveRichard MacCutchan13-Mar-12 0:47 
QuestionRe: how to read flash drive type reader? Pin
David Crow13-Mar-12 3:48
David Crow13-Mar-12 3:48 
Questiondocumentation c++ gui Pin
yahya7712-Mar-12 7:46
yahya7712-Mar-12 7:46 
AnswerRe: documentation c++ gui Pin
Maximilien12-Mar-12 7:59
Maximilien12-Mar-12 7:59 
GeneralRe: documentation c++ gui Pin
yahya7712-Mar-12 8:25
yahya7712-Mar-12 8:25 
AnswerRe: documentation c++ gui Pin
Richard MacCutchan12-Mar-12 8:00
mveRichard MacCutchan12-Mar-12 8:00 
AnswerRe: documentation c++ gui Pin
CPallini12-Mar-12 22:58
mveCPallini12-Mar-12 22:58 
Questiontoolbar not being loaded for dialog dll---extension dll Pin
appollosputnik12-Mar-12 4:09
appollosputnik12-Mar-12 4:09 
i have created an extension dll. where i am loading a dialog from the client mfc application. My dialog has all menubar, toolbar, view. the dll dialog is being loaded but the toolbar is not coming. toolbar is there of the client mfc applications toolbar. My dll dialog toolbar is not being shown. any suggestions what could be the problem??? Thanks in advance

[code]
BOOL CDlgsViewDlg::OnInitDialog()
{
CDialog::OnInitDialog();

m_pNewView = new CMyView();
ShowWindow(SW_SHOWMAXIMIZED);
CRect clientRect;
GetClientRect(&clientRect);
clientRect.DeflateRect(10, 30);
// Creation of the view window
if(! m_pNewView->Create(NULL, NULL, WS_VISIBLE | WS_CHILD, clientRect,
this, WM_USER))
{
MessageBox(L"Failed to create view");
}


menu.LoadMenu(IDR_MAINFRAME1);
SetMenu(&menu);


if(!m_FirstToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD |
WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS |
CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_FirstToolBar.LoadToolBar(IDR_TOOLBAR1))
{
EndDialog(IDCANCEL);
}

RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST,0);

m_wndStatusBar.Create(this); //We create the status bar

m_wndStatusBar.SetIndicators(indicators,2); //Set the number of panes

CRect rect;
GetClientRect(&rect);
//Size the two panes
m_wndStatusBar.SetPaneInfo(0,ID_INDICATOR_NISH,
SBPS_NORMAL,rect.Width()-100);
m_wndStatusBar.SetPaneInfo(1,ID_INDICATOR_TIME,SBPS_STRETCH ,0);

//This is where we actually draw it on the screen
RepositionBars(AFX_IDW_CONTROLBAR_FIRST,AFX_IDW_CONTROLBAR_LAST,
ID_INDICATOR_TIME);

m_wndStatusBar.SetPaneText(0,L"MainWindow Initialized");


if(!fileName.IsEmpty()) {
m_pNewView->loadProfile(fileName);
m_pNewView->domainSetUpForProfile();
m_pNewView->drawLines();
m_pNewView->drawArcs();
m_pNewView->drawProfile();
m_pNewView->isModel=true;
m_pNewView->OnGeneratesurface();
m_pNewView->OnShade();
m_pNewView->OnIsosouthwest();
}

return TRUE; // return TRUE unless you set the focus to a control
}
[\code]
This is the OnInitDialog of my dll dialog where i am loading everything menubar, toolbar calliing some functions etc.
Please help
QuestionRe: toolbar not being loaded for dialog dll---extension dll Pin
Richard MacCutchan12-Mar-12 8:03
mveRichard MacCutchan12-Mar-12 8:03 
AnswerRe: toolbar not being loaded for dialog dll---extension dll Pin
appollosputnik12-Mar-12 21:24
appollosputnik12-Mar-12 21:24 
GeneralRe: toolbar not being loaded for dialog dll---extension dll Pin
Richard MacCutchan12-Mar-12 23:25
mveRichard MacCutchan12-Mar-12 23:25 
QuestionUtf-8 in C++/C Pin
jojoba201111-Mar-12 23:37
jojoba201111-Mar-12 23:37 
SuggestionRe: Utf-8 in C++/C Pin
Richard MacCutchan12-Mar-12 0:19
mveRichard MacCutchan12-Mar-12 0:19 
QuestionUtf-8 in C++/C Pin
jojoba201112-Mar-12 0:26
jojoba201112-Mar-12 0:26 
QuestionRe: Utf-8 in C++/C Pin
CPallini12-Mar-12 0:42
mveCPallini12-Mar-12 0:42 
QuestionRe: Utf-8 in C++/C Pin
jojoba201112-Mar-12 0:46
jojoba201112-Mar-12 0:46 
AnswerRe: Utf-8 in C++/C Pin
CPallini12-Mar-12 1:28
mveCPallini12-Mar-12 1:28 
AnswerRe: Utf-8 in C++/C Pin
PJ Arends12-Mar-12 16:03
professionalPJ Arends12-Mar-12 16:03 
QuestionRe: Utf-8 in C++/C Pin
jojoba201113-Mar-12 4:13
jojoba201113-Mar-12 4:13 
AnswerRe: Utf-8 in C++/C Pin
PJ Arends13-Mar-12 5:28
professionalPJ Arends13-Mar-12 5:28 
QuestionHelp Please !!!!!!!!!!! Pin
jojoba201113-Mar-12 4:16
jojoba201113-Mar-12 4:16 
Questionusing mfc dll in c# Pin
VCProgrammer11-Mar-12 21:33
VCProgrammer11-Mar-12 21:33 
AnswerRe: using mfc dll in c# Pin
Chandrasekharan P11-Mar-12 21:43
Chandrasekharan P11-Mar-12 21:43 
QuestionProblem with view Pin
john56329-Mar-12 21:06
john56329-Mar-12 21:06 
QuestionRe: Problem with view Pin
Randor 10-Mar-12 3:42
professional Randor 10-Mar-12 3:42 

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.