Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: the use of 'new' Pin
Rajesh R Subramanian26-Jun-09 5:58
professionalRajesh R Subramanian26-Jun-09 5:58 
AnswerRe: the use of 'new' Pin
Chris Losinger26-Jun-09 7:51
professionalChris Losinger26-Jun-09 7:51 
GeneralRe: the use of 'new' Pin
CPallini26-Jun-09 8:54
mveCPallini26-Jun-09 8:54 
AnswerRe: the use of 'new' Pin
Nemanja Trifunovic26-Jun-09 9:25
Nemanja Trifunovic26-Jun-09 9:25 
GeneralRe: the use of 'new' Pin
CPallini26-Jun-09 9:51
mveCPallini26-Jun-09 9:51 
GeneralRe: the use of 'new' Pin
norish26-Jun-09 16:21
norish26-Jun-09 16:21 
AnswerRe: the use of 'new' Pin
Joe Woodbury27-Jun-09 17:48
professionalJoe Woodbury27-Jun-09 17:48 
QuestionNTGraph Zoom [modified] Pin
KevinVS26-Jun-09 4:26
KevinVS26-Jun-09 4:26 
I'm having an issue with the zoom method of NTGraph. Basically the code is as follows:

void CPlot1To1NBBBRSvsIL::OnZoomIn()
{
m_Graph.AutoZoomIn(0.0);
}

void CPlot1To1NBBBRSvsIL::OnZoomOut()
{
m_Graph.AutoZoomOut (0.0);
}

Where when I step into the function during debug it goes into NTGraph.cpp at

void CNTGraph::AutoZoomIn(double zoomPercent)
{
static BYTE parms[] =
VTS_R8;
InvokeHelper(0x53, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
zoomPercent);
}

void CNTGraph::AutoZoomOut(double zoomPercent)
{
static BYTE parms[] =
VTS_R8;
InvokeHelper(0x54, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
zoomPercent);
}

The problem is that I do not know what the default zoomPercent is, when I watch the variable it is set to 0.0, but if I change it to

m_Graph.AutoZoomOut (50.0);

It ceases to zoom at all, where it previously would zoom an unknown amount. I've also tried using

m_Graph.SetAutoZoomPercentage(50);

For both ways I tried using various numbers between 200 and .01 as I was not sure if it was truly in percentage format, but this did not make any difference.

Please let me know if you can tell me how the zoom function works and by what percent it goes by (in x and y), the goal being to create some code to reformat the y-axis upon zooming, which currently seems to be faulty if zoomPercent is left at 0.0.

It might be worth noting that upon zooming out, the y axis does indeed adjust accordingly, it's only zoomin thats a problem...

Thank you for your time,
KevinVS

modified on Friday, June 26, 2009 10:42 AM

QuestionRe: NTGraph Zoom Pin
CPallini26-Jun-09 5:00
mveCPallini26-Jun-09 5:00 
Questionhow to change data of struture object in file Pin
ashish8patil26-Jun-09 4:11
ashish8patil26-Jun-09 4:11 
QuestionRe: how to change data of struture object in file Pin
David Crow26-Jun-09 4:40
David Crow26-Jun-09 4:40 
QuestionRe: how to change data of struture object in file Pin
CPallini26-Jun-09 4:56
mveCPallini26-Jun-09 4:56 
QuestionProblem using MsiGetProductInfo for retreving the product version Pin
V K 226-Jun-09 2:48
V K 226-Jun-09 2:48 
AnswerRe: Problem using MsiGetProductInfo for retreving the product version Pin
Rajesh R Subramanian26-Jun-09 3:26
professionalRajesh R Subramanian26-Jun-09 3:26 
QuestionProgram not giving desired output Pin
Razanust26-Jun-09 2:31
Razanust26-Jun-09 2:31 
AnswerRe: Program not giving desired output Pin
Rajesh R Subramanian26-Jun-09 2:37
professionalRajesh R Subramanian26-Jun-09 2:37 
AnswerRe: Program not giving desired output Pin
CPallini26-Jun-09 2:40
mveCPallini26-Jun-09 2:40 
GeneralRe: Program not giving desired output Pin
Razanust27-Jun-09 5:36
Razanust27-Jun-09 5:36 
GeneralRe: Program not giving desired output Pin
CPallini28-Jun-09 0:36
mveCPallini28-Jun-09 0:36 
QuestionHow to change structure data written in the file. in v++ Pin
ashish8patil26-Jun-09 2:12
ashish8patil26-Jun-09 2:12 
AnswerRe: How to change structure data written in the file. in v++ Pin
Rajesh R Subramanian26-Jun-09 2:14
professionalRajesh R Subramanian26-Jun-09 2:14 
JokeRe: How to change structure data written in the file. in v++ Pin
CPallini26-Jun-09 2:28
mveCPallini26-Jun-09 2:28 
GeneralRe: How to change structure data written in the file. in v++ Pin
Rajesh R Subramanian26-Jun-09 2:38
professionalRajesh R Subramanian26-Jun-09 2:38 
GeneralRe: How to change structure data written in the file. in v++ Pin
ashish8patil26-Jun-09 4:07
ashish8patil26-Jun-09 4:07 
Questionhow to open rtf file Pin
santhosh-padamatinti26-Jun-09 1:30
santhosh-padamatinti26-Jun-09 1:30 

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.