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

Enumerating children problem

$
0
0

So I'm trying to find a radio button in a window.

I'm using enumerate children function with the following function as processor:

LONG style;
	style = GetWindowLong(hwnd, GWL_STYLE);
	if(style==BS_AUTORADIOBUTTON){
		MessageBox(NULL,"RADIO","",NULL);
		PostMessage(hwnd, BM_SETCHECK, BST_CHECKED, 0);
	}
	return TRUE ;

I checked with spy++,there is a radio button with that style,however the msgbox never appears,why?


Viewing all articles
Browse latest Browse all 15302


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