|
I don't think it will work to change the Z-order. The Z-order is updated according to the user activity, a click on a control will bring it to the front.
You can have a dialog in the view window using standars MFC features. Instead of deriving your view class from CView, derive it from CFormView. The CFormView embeds a standard dialog template.
|
|
|
|
|
I have plotted a graph in a Picture control. Now I want to click the mouse on top of some points of the graph and then get the coordinate of that point. Can anyone help? Many thx~~~
Kennis
|
|
|
|
|
Actually mouse click notifications (for instance, WM_LBUTTONDOWN ) provide pointer coordinates.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
s Mr.pallni says absolutely true..i already checked it..
raju.k
|
|
|
|
|
Have u checked on the picture control
|
|
|
|
|
Adding to CPallini, u may need to subclass the picture control to get the mouse events
|
|
|
|
|
I dont know how to get the coordinate of the picture control. So finally I subtract the offset of the top left corner of the picture control. This method may be silly but can achieve what i want to do
|
|
|
|
|
Hi..
I want use progress bar using command line programming...plz help me...
thanks in advance..
Hi,,
I am sharan.Working as a software Engineer in Indo-Fuji Software Company located in BTM Layout.Bangalore.India.
I have Completed my B.E(COmputers)in 2006.ANd I am having 2 years of Exp in VC++.
thanking you
sharan
|
|
|
|
|
sharanu wrote: I want use progress bar using command line programming...plz help me...
Command line programming?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
|
Aaah, yes Command Line Programming. Now everything is clear
|
|
|
|
|
Command Line Programming, why didn't I realize before? My bad!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Since you don't explain further what do you mean with 'Command Line Programming', I suppose you're talking about Console applications, i.e. character oriented ones. Now what has to do a window control, like the progress bar, with a character oriented application?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
In graphical mode.
Maxwell Chen
|
|
|
|
|
?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Remember the graphical mode in the old DOS time? It applies to the command prompt window.
Maxwell Chen
|
|
|
|
|
No, I can't understand what you're talking about. Can console applications access single pixels on screen?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: Can console applications access single pixels on screen?
Yes. You can run this command edit from a command-prompt or from "Run", and you see a blue DOS application with the menu items in gray.
edit
Maxwell Chen
|
|
|
|
|
And if you have the 16-bit version Ghost v11 (run under pure DOS [Win98 boot diskette] ), You see it even draw pretty windows.
Maxwell Chen
|
|
|
|
|
OK, but edit does not appear to access the single pixel, while for the real graphic stuff you suggest the dos mode...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: while for the real graphic stuff you suggest the dos mode...
There are some, but I don't quite remember their names.
Maxwell Chen
|
|
|
|
|
Oh, oh, oh, GraphInit or smth like that in old Pascal, was also something for C afaik. You could anyway init a EGA/VGA/SVGA graphics mode with some asm also anyway. Gave you a certain resolution and colors. Think I used 800x600 with 256 colors mostly, which was ok for back then.
|
|
|
|
|
CPallini wrote: Can console applications access single pixels on screen?
No, but where did pixels become part of the "requirements?" You can have a progress bar in a console application.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: No, but where did pixels become part of the "requirements?" You can have a progress bar in a console application.
They became because (as you probably supposed) I wasn't aware about the possibility of having a progress bar in console application.
BTW how could one show the progress bar (i.e. something quite similar to the windows control, not, for instance, a sequence of '.' ) in such kind of applications?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: BTW how could one show the progress bar (i.e. something quite similar to the windows control, not, for instance, a sequence of '.') in such kind of applications?
printf("%c%c", 219, 219);
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|