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

C / C++ / MFC

 
QuestionRe: how to use external function in a dll from c Pin
David Crow31-Aug-09 3:26
David Crow31-Aug-09 3:26 
AnswerRe: how to use external function in a dll from c Pin
mohant$.net31-Aug-09 3:33
mohant$.net31-Aug-09 3:33 
AnswerRe: how to use external function in a dll from c Pin
Joe Woodbury31-Aug-09 9:26
professionalJoe Woodbury31-Aug-09 9:26 
QuestionSCardTransmit Returns 0x0000000e. Pin
deepakect31-Aug-09 0:34
deepakect31-Aug-09 0:34 
QuestionInheriting Struct Pin
kumar sanghvi31-Aug-09 0:34
kumar sanghvi31-Aug-09 0:34 
AnswerRe: Inheriting Struct Pin
Rajesh R Subramanian31-Aug-09 0:42
professionalRajesh R Subramanian31-Aug-09 0:42 
AnswerRe: Inheriting Struct Pin
Richard MacCutchan31-Aug-09 3:32
mveRichard MacCutchan31-Aug-09 3:32 
QuestionProblem with Visual studio 2008 feature pack's CMFCToolBar - not being displayed Pin
Sternocera30-Aug-09 23:53
Sternocera30-Aug-09 23:53 
Hello,

I'm upgrading my MFC application to make use of some of the new user interface elements from the Visual studio 2008 feature pack. My first concern is upgrading my CToolBar to the pack's new CMFCToolBar, to use large icons, rollover buttons, etc.

I use much the same boilerplate code in CMainFrame::OnCreate() as ever:

if (CFrameWnd::OnCreate(lpCreateStruct) == -1)
	return -1;

// I've attempted to simplify the code to the greatest possible extent to isolate the problem:
	
// The this pointer points to CMainFrame class which extends the CFrameWnd class.
if (!m_wndToolBar.CreateEx (this, TBSTYLE_TRANSPARENT) ||
    !m_wndToolBar.LoadToolBar (IDR_MAINFRAME))
{
    TRACE0("Failed to create toolbar\n");
    return -1;      // fail to create
}


However, no toolbar is visible when the application starts - it is simply omitted. Switching the class of m_wndToolBar from CMFCToolBar back to CToolBar once again makes the toolbar visible.

Why might the framework fail to display my CMFCToolBar? How can I fix the problem?

Regards,
Sternocera
AnswerRe: Problem with Visual studio 2008 feature pack's CMFCToolBar - not being displayed Pin
Prasann Mayekar31-Aug-09 2:37
Prasann Mayekar31-Aug-09 2:37 
QuestionShadow Pin
thanhvinh090630-Aug-09 23:36
thanhvinh090630-Aug-09 23:36 
AnswerRe: Shadow Pin
Cedric Moonen30-Aug-09 23:45
Cedric Moonen30-Aug-09 23:45 
GeneralRe: Shadow Pin
thanhvinh090631-Aug-09 2:41
thanhvinh090631-Aug-09 2:41 
AnswerRe: Shadow Pin
Nuri Ismail31-Aug-09 3:28
Nuri Ismail31-Aug-09 3:28 
GeneralRe: Shadow Pin
thanhvinh090631-Aug-09 5:40
thanhvinh090631-Aug-09 5:40 
AnswerRe: Shadow Pin
Nuri Ismail31-Aug-09 6:04
Nuri Ismail31-Aug-09 6:04 
QuestionSelectClipRgn Pin
thanhvinh090630-Aug-09 23:29
thanhvinh090630-Aug-09 23:29 
AnswerRe: SelectClipRgn Pin
Cedric Moonen30-Aug-09 23:43
Cedric Moonen30-Aug-09 23:43 
AnswerRe: SelectClipRgn Pin
thanhvinh090631-Aug-09 2:29
thanhvinh090631-Aug-09 2:29 
Questionwhich module created a specific file? Pin
Joseph Marzbani30-Aug-09 22:36
Joseph Marzbani30-Aug-09 22:36 
AnswerRe: which module created a specific file? Pin
Adam Roderick J30-Aug-09 23:15
Adam Roderick J30-Aug-09 23:15 
AnswerRe: which module created a specific file? Pin
Rajesh R Subramanian30-Aug-09 23:32
professionalRajesh R Subramanian30-Aug-09 23:32 
QuestionApi other then ShellExecute Pin
Le@rner30-Aug-09 22:14
Le@rner30-Aug-09 22:14 
AnswerRe: Api other then ShellExecute Pin
Rajesh R Subramanian30-Aug-09 22:25
professionalRajesh R Subramanian30-Aug-09 22:25 
AnswerRe: Api other then ShellExecute Pin
Hamid_RT30-Aug-09 22:46
Hamid_RT30-Aug-09 22:46 
AnswerRe: Api other then ShellExecute Pin
David Crow31-Aug-09 2:51
David Crow31-Aug-09 2:51 

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.