Click here to Skip to main content
16,017,745 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++6 Dll For use with VB6 Pin
tinman033015-Oct-05 12:48
tinman033015-Oct-05 12:48 
Questionwhy can't I see my class in the ClassView pane? Pin
ewighell14-Oct-05 18:05
ewighell14-Oct-05 18:05 
AnswerRe: why can't I see my class in the ClassView pane? Pin
Fired Fish14-Oct-05 20:12
Fired Fish14-Oct-05 20:12 
AnswerRe: why can't I see my class in the ClassView pane? Pin
khan++14-Oct-05 21:39
khan++14-Oct-05 21:39 
GeneralRe: why can't I see my class in the ClassView pane? Pin
ewighell15-Oct-05 6:14
ewighell15-Oct-05 6:14 
GeneralRe: why can't I see my class in the ClassView pane? Pin
fuzz_ball18-Oct-05 15:46
fuzz_ball18-Oct-05 15:46 
QuestionRichEdit Control not Drawing Properly Pin
Steve Thresher14-Oct-05 12:22
Steve Thresher14-Oct-05 12:22 
Questiontoolbar Pin
Archer28214-Oct-05 12:11
Archer28214-Oct-05 12:11 
i have a toolbar made with the Win32 API

	/* create the toolbar */ <br />
	hwndTB = CreateWindowEx( 0, TOOLBARCLASSNAME, NULL, WS_CHILD | TBSTYLE_TOOLTIPS| WS_VISIBLE, <br />
		0, 0, 0, 0, hWnd, (HMENU)IDC_TOOLBAR, GetModuleHandle(NULL), NULL );<br />
	SendMessage( hwndTB, TB_BUTTONSTRUCTSIZE, (WPARAM)sizeof(TBBUTTON), 0 );<br />
 <br />
	/* load bitmap */ <br />
	HBITMAP hBMP = LoadBitmap( GetModuleHandle(NULL), (LPCTSTR)IDB_TBBUTTONS );<br />
	TBADDBITMAP tbab = {NULL,(int)hBMP};<br />
	SendMessage( hwndTB, TB_SETBITMAPSIZE, 0, (LPARAM)MAKELONG(16,16) );<br />
	SendMessage( hwndTB, TB_ADDBITMAP, 8, (LPARAM)&tbab );<br />
<br />
	/* add buttons */ <br />
	TBBUTTON tbb[] = { <br />
		{0,IDM_FILE_ADD,TBSTATE_ENABLED,TBSTYLE_BUTTON,0,0,0},<br />
		{1,IDM_FILE_EDIT,TBSTATE_ENABLED,TBSTYLE_BUTTON,1,1,1},<br />
		{2,IDM_FILE_DELETE,TBSTATE_ENABLED,TBSTYLE_BUTTON,0,2,2},<br />
			{0,0,TBSTATE_ENABLED,TBSTYLE_SEP,0,0,0},<br />
		{3,IDM_STUB_EDIT,TBSTATE_ENABLED,TBSTYLE_BUTTON,0,0,3},<br />
		{5,IDM_FILE_BUILD,TBSTATE_ENABLED,TBSTYLE_BUTTON,0,0,4},<br />
			{0,0,TBSTATE_ENABLED,TBSTYLE_SEP,0,0,0},<br />
		{4,IDM_HELP_README,TBSTATE_ENABLED,TBSTYLE_BUTTON,0,0,5}<br />
	}; <br />
	SendMessage( hwndTB, TB_ADDBUTTONS, 8, (LPARAM)&tbb );<br />
	ShowWindow( hwndTB, SW_SHOW );


the bitmap(IDB_TBBUTTONS) looks like this
http://img422.imageshack.us/my.php?image=toolbarbuttons6gj.png[^]

so far it's working perfect, except i can't figure out how to set the mask, so the pink areas, are transparent..
can anyone help me out here?
AnswerRe: toolbar Pin
khan++14-Oct-05 21:48
khan++14-Oct-05 21:48 
QuestionListing Thread Module Names and Base Addresses Pin
Abhishek Karnik14-Oct-05 9:54
Abhishek Karnik14-Oct-05 9:54 
AnswerRe: Listing Thread Module Names and Base Addresses Pin
Arman S.14-Oct-05 10:13
Arman S.14-Oct-05 10:13 
GeneralRe: Listing Thread Module Names and Base Addresses Pin
Anonymous14-Oct-05 10:32
Anonymous14-Oct-05 10:32 
GeneralRe: Listing Thread Module Names and Base Addresses Pin
Abhishek Karnik14-Oct-05 10:48
Abhishek Karnik14-Oct-05 10:48 
GeneralRe: Listing Thread Module Names and Base Addresses Pin
Robert M Greene14-Oct-05 11:07
Robert M Greene14-Oct-05 11:07 
GeneralRe: Listing Thread Module Names and Base Addresses Pin
Abhishek Karnik14-Oct-05 11:09
Abhishek Karnik14-Oct-05 11:09 
QuestionPassing pointers Pin
Anonymous14-Oct-05 8:22
Anonymous14-Oct-05 8:22 
AnswerRe: Passing pointers Pin
Axter14-Oct-05 15:56
professionalAxter14-Oct-05 15:56 
QuestionFun with CPropertySheets/Pages Pin
Jader8914-Oct-05 8:03
Jader8914-Oct-05 8:03 
AnswerRe: Fun with CPropertySheets/Pages Pin
Jader8914-Oct-05 8:04
Jader8914-Oct-05 8:04 
AnswerRe: Fun with CPropertySheets/Pages Pin
Maximilien14-Oct-05 8:58
Maximilien14-Oct-05 8:58 
AnswerRe: Fun with CPropertySheets/Pages Pin
Roger Allen14-Oct-05 9:18
Roger Allen14-Oct-05 9:18 
GeneralRe: Fun with CPropertySheets/Pages Pin
Jader8914-Oct-05 10:28
Jader8914-Oct-05 10:28 
GeneralRe: Fun with CPropertySheets/Pages Pin
Maximilien15-Oct-05 9:07
Maximilien15-Oct-05 9:07 
QuestionHow to handle the ENTER key in the parent window... Pin
Ian Bowler14-Oct-05 7:45
Ian Bowler14-Oct-05 7:45 
AnswerRe: How to handle the ENTER key in the parent window... Pin
Mircea Puiu14-Oct-05 21:35
Mircea Puiu14-Oct-05 21:35 

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.