Click here to Skip to main content
15,560,542 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPreventing Sleep (sometimes) Pin
Peter Weyzen22-Jun-09 15:44
Peter Weyzen22-Jun-09 15:44 
QuestionRe: Preventing Sleep (sometimes) Pin
David Crow22-Jun-09 18:20
David Crow22-Jun-09 18:20 
AnswerRe: Preventing Sleep (sometimes) Pin
Peter Weyzen22-Jun-09 18:38
Peter Weyzen22-Jun-09 18:38 
QuestionTrying to Create a Toolbar using the class ToolBar Pin
BobInNJ22-Jun-09 9:59
BobInNJ22-Jun-09 9:59 
AnswerRe: Trying to Create a Toolbar using the class ToolBar Pin
bolivar12322-Jun-09 10:30
bolivar12322-Jun-09 10:30 
GeneralRe: Trying to Create a Toolbar using the class ToolBar Pin
BobInNJ22-Jun-09 10:52
BobInNJ22-Jun-09 10:52 
GeneralRe: Trying to Create a Toolbar using the class ToolBar Pin
bolivar12322-Jun-09 11:12
bolivar12322-Jun-09 11:12 
GeneralRe: Trying to Create a Toolbar using the class ToolBar [modified] Pin
BobInNJ22-Jun-09 11:50
BobInNJ22-Jun-09 11:50 
Thank you for the response. I tried your code and I found that it did not compile due
to the fact that it calls Create with four arguments and Create takes at more three. I
do not understand what the purpose of the first argument (NULL) is. Therefore, I took
the NULL argument to Create. I left the other three (this, IDR_TOOLBAR and the flags)
in. After doing so, the code compiled but when run, it did not produce a tool bar.

I am thinking that problem might be related to my resource file. Below is the relevant part
of my resource file:

IDR_TOOLBAR BITMAP "TOOLBAR.BMP"
IDR_TOOLBAR TOOLBAR 16, 15
BEGIN
	BUTTON IDM_LINES
	BUTTON IDM_RECTANGLES
	BUTTON IDM_ELLIPSES
	SEPARATOR
	BUTTON IDM_SHOWTB
	BUTTON IDM_EXIT
END


Observe that the name of the bit map and the name of the tool bar is the same. I believe
it is suppose to be that way, right?

Any other ideas?

Bob

modified on Monday, June 22, 2009 5:30 PM

QuestionGeneric Specialized Template Definitions Pin
Skippums22-Jun-09 9:42
Skippums22-Jun-09 9:42 
AnswerRe: Generic Specialized Template Definitions Pin
Stuart Dootson22-Jun-09 10:31
professionalStuart Dootson22-Jun-09 10:31 
GeneralRe: Generic Specialized Template Definitions Pin
Skippums23-Jun-09 4:22
Skippums23-Jun-09 4:22 
GeneralRe: Generic Specialized Template Definitions Pin
Stuart Dootson23-Jun-09 4:36
professionalStuart Dootson23-Jun-09 4:36 
AnswerRe: Generic Specialized Template Definitions Pin
Nemanja Trifunovic22-Jun-09 10:34
Nemanja Trifunovic22-Jun-09 10:34 
GeneralRe: Generic Specialized Template Definitions Pin
Skippums22-Jun-09 10:52
Skippums22-Jun-09 10:52 
GeneralRe: Generic Specialized Template Definitions Pin
Nemanja Trifunovic22-Jun-09 11:04
Nemanja Trifunovic22-Jun-09 11:04 
QuestionPerformance problem with my FindOneOf function [modified] Pin
Ivan Ivanov 8322-Jun-09 5:09
Ivan Ivanov 8322-Jun-09 5:09 
AnswerRe: Performance problem with my FindOneOf function Pin
Stuart Dootson22-Jun-09 9:46
professionalStuart Dootson22-Jun-09 9:46 
GeneralRe: Performance problem with my FindOneOf function Pin
Ivan Ivanov 8322-Jun-09 23:30
Ivan Ivanov 8322-Jun-09 23:30 
GeneralRe: Performance problem with my FindOneOf function Pin
Stuart Dootson22-Jun-09 23:48
professionalStuart Dootson22-Jun-09 23:48 
GeneralRe: Performance problem with my FindOneOf function Pin
Ivan Ivanov 8323-Jun-09 1:32
Ivan Ivanov 8323-Jun-09 1:32 
GeneralRe: Performance problem with my FindOneOf function Pin
Stuart Dootson23-Jun-09 1:41
professionalStuart Dootson23-Jun-09 1:41 
GeneralRe: Performance problem with my FindOneOf function Pin
Ivan Ivanov 8323-Jun-09 5:17
Ivan Ivanov 8323-Jun-09 5:17 
GeneralRe: Performance problem with my FindOneOf function Pin
Ivan Ivanov 8324-Jun-09 2:11
Ivan Ivanov 8324-Jun-09 2:11 
AnswerRe: Performance problem with my FindOneOf function Pin
Skippums22-Jun-09 10:02
Skippums22-Jun-09 10:02 
GeneralRe: Performance problem with my FindOneOf function Pin
Stuart Dootson22-Jun-09 10:34
professionalStuart Dootson22-Jun-09 10:34 

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.