Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Problem with checking Checkbox

$
0
0

So,I'm enumerating all the childs of a window,and using this as a processor:

LONG style;
	style = GetWindowLong(hwnd, GWL_STYLE);
	if((style & BS_TYPEMASK) == BS_AUTOCHECKBOX){
		MessageBox(NULL,"check","",NULL);
		PostMessage(hwnd, BM_SETCHECK, BST_CHECKED, 0);
	}
	return TRUE ;

I checked it,there is a checkbox with that style.Why doesn't it work?


Viewing all articles
Browse latest Browse all 15302


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>