View Single Post
Old 05-30-2006, 07:39 PM   #1 (permalink)
Tocs1001
Cloud's Hair Spray
 
Join Date: May 2006
Posts: 63
Reputation: 10
Default MFC Question, "Brush" Question

Hey I'm back with a couple programming questions, I'm using c++ in Microsoft Visual Studio .NET 2003, and MFC.

I'm working on my map editor...
Screeny: http://home.fuse.net/Dragonstorm/MapEditor.jpg
Yes the map on the screen stinks, it was a File->Load Test....

First Question.....
With the Dialog Builder how do I set the Min and Max Values of a Slider Control? :rolleyes: I looked through books, I could do it in code, but I was hoping there was a way to do it in the editor....Less to keep track of If i decide to change how it's going to work...

Second Question.....
I have a linear array [Size of image * Size of Image] to hold the height data because you cant create a 2D array with
Code:
char *map = new char [Size][Size];

'Size' being a variable
I'm trying to write the Brush tool to paint with right now and how would I go about finding the pixels to modify if I knew the diameter of the Brush's circle? I want the user to use the "Tool Box" to select the brush width and use a circle with that diameter to paint on my map, I can get the X,Y of the mouse simple but how do i find the points around it?
__________________
Legends of Alterion - Under Development

toast lands butter down, cats land on their feet, what happens when u strap toast to a cat?.....
Math indicates they will hover in quatom indecision...(yet to be tested)
Tocs1001 is offline