control or strategy selection


Which MFC control should I use to display a 7 green squares that represent bits on or off? It may be a stupid question but I am newbie
I don't think there is a specific control that you can use. I would suggest that you create your own. Basically you register a new window class and handle the painting where you would draw the 7 boxes and would present a horizontal scrollbar whenever needed. If you need to allow the user to turn the bits on and off, capture mouse input (clicks).

If you are using MFC, I would then encapsulate the whole thing in a class. Since I barely know anything about MFC, I could be wrong recommending a parent class, but I'll give it a shot anyway: CWnd.
Topic archived. No new replies allowed.