Click here to Skip to main content
15,908,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FILE_ATTRIBUTE_READONLY Pin
David Crow7-Jun-05 10:59
David Crow7-Jun-05 10:59 
QuestionIs MS-SDK needed for building a media player? Pin
s99288637-Jun-05 10:25
s99288637-Jun-05 10:25 
AnswerRe: Is MS-SDK needed for building a media player? Pin
Christian Graus7-Jun-05 12:19
protectorChristian Graus7-Jun-05 12:19 
GeneralObtaining USB device serial numbers Pin
Anonymous7-Jun-05 10:10
Anonymous7-Jun-05 10:10 
GeneralRe: Obtaining USB device serial numbers Pin
Cedric Moonen7-Jun-05 20:40
Cedric Moonen7-Jun-05 20:40 
GeneralUsing WNetGetUserA Pin
kozu7-Jun-05 9:17
kozu7-Jun-05 9:17 
GeneralRe: Using WNetGetUserA Pin
Carsten Zeumer7-Jun-05 10:15
Carsten Zeumer7-Jun-05 10:15 
GeneralCreating ToolBar with enabled buttons Pin
Budric B.7-Jun-05 9:16
Budric B.7-Jun-05 9:16 
Hi,
I have a simple question. I copied the following code into my own subclass of CFrameWnd:
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
    | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
    !m_wndToolBar.LoadToolBar(IDR_IMAGEVIEWER_TOOLBAR))
    {
	TRACE0("Failed to create first main toolbar\n");
	return -1;      // fail to create
    }


The toolbar shows up but all the buttons are disabled. I did not want to write UPDATE_COMMAND_UI handler for each button because I never plan on disabling most (if not all of them). What am I missing from my code? For any SDI app you create in the wizard the toolbar shows up with buttons enabled. I copied the same code and it doesn't work for me.

Thanks.
GeneralRe: Creating ToolBar with enabled buttons Pin
PJ Arends7-Jun-05 12:32
professionalPJ Arends7-Jun-05 12:32 
GeneralRe: that fixed the problem Pin
Budric B.8-Jun-05 3:59
Budric B.8-Jun-05 3:59 
GeneralAfxBeginThread and threadproc question Pin
Steve Messer7-Jun-05 7:28
Steve Messer7-Jun-05 7:28 
GeneralRe: AfxBeginThread and threadproc question Pin
Tom Archer7-Jun-05 7:32
Tom Archer7-Jun-05 7:32 
GeneralRe: AfxBeginThread and threadproc question Pin
Tom Archer7-Jun-05 7:34
Tom Archer7-Jun-05 7:34 
GeneralRe: AfxBeginThread and threadproc question Pin
Steve Messer7-Jun-05 7:35
Steve Messer7-Jun-05 7:35 
GeneralRe: AfxBeginThread and threadproc question Pin
David Crow7-Jun-05 7:46
David Crow7-Jun-05 7:46 
GeneralRe: AfxBeginThread and threadproc question Pin
Steve Messer7-Jun-05 7:59
Steve Messer7-Jun-05 7:59 
GeneralRe: AfxBeginThread and threadproc question Pin
Bob Stanneveld7-Jun-05 9:29
Bob Stanneveld7-Jun-05 9:29 
GeneralRe: AfxBeginThread and threadproc question Pin
Steve Messer7-Jun-05 9:32
Steve Messer7-Jun-05 9:32 
QuestionHow to create a new file with fstream? Pin
heng09877-Jun-05 6:51
heng09877-Jun-05 6:51 
AnswerRe: How to create a new file with fstream? Pin
David Crow7-Jun-05 7:10
David Crow7-Jun-05 7:10 
GeneralRe: How to create a new file with fstream? Pin
heng09877-Jun-05 7:15
heng09877-Jun-05 7:15 
GeneralRe: How to create a new file with fstream? Pin
David Crow7-Jun-05 7:34
David Crow7-Jun-05 7:34 
GeneralMatlab interface Pin
gobar7-Jun-05 6:01
gobar7-Jun-05 6:01 
GeneralRe: Matlab interface Pin
Bob Flynn7-Jun-05 6:37
Bob Flynn7-Jun-05 6:37 
GeneralPath of an application Pin
bkphat7-Jun-05 5:55
bkphat7-Jun-05 5:55 

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.