Click here to Skip to main content
16,009,640 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: a poker game....need help......plz help Pin
David Crow7-Jul-05 8:06
David Crow7-Jul-05 8:06 
GeneralRe: a poker game....need help......plz help Pin
koalacui7-Jul-05 8:11
koalacui7-Jul-05 8:11 
GeneralI have done so far..............help me update Pin
koalacui7-Jul-05 8:13
koalacui7-Jul-05 8:13 
QuestionHow to check folder last access time? Pin
MirkoMax7-Jul-05 7:39
sussMirkoMax7-Jul-05 7:39 
AnswerRe: How to check folder last access time? Pin
David Crow7-Jul-05 7:48
David Crow7-Jul-05 7:48 
Generalcheckbox check problem Pin
c. s.7-Jul-05 7:11
c. s.7-Jul-05 7:11 
GeneralRe: checkbox check problem Pin
David Crow7-Jul-05 7:32
David Crow7-Jul-05 7:32 
GeneralRe: checkbox check problem Pin
c. s.7-Jul-05 7:49
c. s.7-Jul-05 7:49 
hTempWnd = CreateWindowEx (
										0,										// no extended style
										"Button",	
										"Compression",							// toggles chunk compression
										WS_VISIBLE | WS_CHILD | BS_OWNERDRAW,	// make a visible child window, that we draw ourself (see void DrawCheckbox)
										clientRect.right - MM_DBUTTON_WIDTH - MMPADDING_RIGHT,		// create it near the top right corner
										clientRect.top + MMPADDING_TOP + MM_GROUPPADDING_BOTTOM,
										MM_DBUTTON_WIDTH, MM_DBUTTON_HEIGHT,	// use our standard checkbox button height and width
										hWnd,									// our parent window is this popup menu
										(HMENU) MMENU_BUTTON_COMPRESSION,
										GetModuleHandle ( NULL ),
										NULL									// pass no extra parms on creation
									) ;


LPDRAWITEMSTRUCT lpdis from lParam in WM_DRAWITEM
long lResult = 0;

		lResult = SendMessage ( lpdis->hwndItem, BM_GETCHECK, (WPARAM) 0, (LPARAM) 0 ) ;
		if ( lResult == BST_CHECKED ) ...


When I was trying BM_GETIMAGE I used the same procedure as the second code snippet

edit: It seems that BM_GETCHECK and BM_SETCHECK just don't work with ownerdraw, so that solves that issue, but I'm still unsure why BM_SETIMAGE doesn't work.
GeneralRe: checkbox check problem Pin
David Crow7-Jul-05 8:02
David Crow7-Jul-05 8:02 
GeneralRe: checkbox check problem Pin
c. s.7-Jul-05 8:09
c. s.7-Jul-05 8:09 
GeneralRe: checkbox check problem Pin
David Crow7-Jul-05 8:14
David Crow7-Jul-05 8:14 
GeneralRe: checkbox check problem Pin
Jose Lamas Rios7-Jul-05 8:08
Jose Lamas Rios7-Jul-05 8:08 
GeneralRe: checkbox check problem Pin
David Crow7-Jul-05 8:15
David Crow7-Jul-05 8:15 
GeneralRe: checkbox check problem Pin
Jose Lamas Rios7-Jul-05 8:20
Jose Lamas Rios7-Jul-05 8:20 
GeneralRe: checkbox check problem Pin
c. s.7-Jul-05 8:18
c. s.7-Jul-05 8:18 
GeneralRe: checkbox check problem Pin
Jose Lamas Rios7-Jul-05 8:40
Jose Lamas Rios7-Jul-05 8:40 
GeneralScroll Messages from ListCtrl Pin
Jethro637-Jul-05 7:08
Jethro637-Jul-05 7:08 
GeneralRe: Scroll Messages from ListCtrl Pin
Jose Lamas Rios7-Jul-05 8:13
Jose Lamas Rios7-Jul-05 8:13 
GeneralRe: Scroll Messages from ListCtrl Pin
Jethro637-Jul-05 9:52
Jethro637-Jul-05 9:52 
GeneralRe: Scroll Messages from ListCtrl Pin
Jose Lamas Rios7-Jul-05 10:05
Jose Lamas Rios7-Jul-05 10:05 
GeneralRe: Scroll Messages from ListCtrl Pin
Jethro637-Jul-05 15:39
Jethro637-Jul-05 15:39 
GeneralRe: Scroll Messages from ListCtrl Pin
Jose Lamas Rios7-Jul-05 15:57
Jose Lamas Rios7-Jul-05 15:57 
GeneralRe: Scroll Messages from ListCtrl Pin
Jethro637-Jul-05 16:04
Jethro637-Jul-05 16:04 
Generalmenu check problem Pin
Tom Wright7-Jul-05 6:56
Tom Wright7-Jul-05 6:56 
GeneralRe: menu check problem Pin
Jose Lamas Rios7-Jul-05 8:31
Jose Lamas Rios7-Jul-05 8:31 

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.