|
|
sorry i cant understand what u say?
|
|
|
|
|
Please follow the link I posted to an earlier message in this very same forum asking and answering the very same question.
|
|
|
|
|
Did you bother to test your clickety before submitting your message.
No wonder the guy was (still is) confused.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
|
YEs this one has the desired result
|
|
|
|
|
|
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
I have written a program which launches another application which displays a Tree. Thru my application, I obtain a handle to the window which displays the tree. using this handle I want to grab the tree. Is there a way I can do that. The program I am writing is in C# but I thought that some help from the VC++ section would do. I now know that there is CWnd::Attach and Detach in VC++ . Is there a way to call this from C#.
Abhishek
|
|
|
|
|
You can call GetClassName() on the window handle, and see if it is a "SysTreeView32" class. If it is you can send TVM_* messages to it to get the information you need.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
I am developing an application which is looking at the process running on the PC. For Explorer.exe I can get the window title, but does anyone know where in the registry, if at all, this title matches up with a folder name.
For example
Title=RandP
CommandLine=C:\WINDOWS\Explorer.EXE
so how do I get at the text in the Address control of Explorer ? does this info get saved/stored in the registry ?
Any help would be much appreciated.
Phil Gibson
|
|
|
|
|
philgibson wrote:
so how do I get at the text in the Address control of Explorer ?
You have to Write Browser Helper Object for Window Explorer!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
philgibson wrote:
does this info get saved/stored in the registry ?
Nope
philgibson wrote:
so how do I get at the text in the Address control of Explorer ?
You have To write Browser Helper Object for Window Explorer. Search Browser Helper Object in google to know more about it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi
Im using the adobe acrobat ocx to show a .pdf in my application`s dialog.
I can´t allow the user to print, copy or capture data in the pdf...
so
Does anyone knows the way to get rid of the toolbars?
Thanks in advance
Sebastian
PD: this is a freelance project so, i can´t afford the fee for the Adobe SDK/library.
|
|
|
|
|
can any body tell me how to render points on client area using Cpoint class?
|
|
|
|
|
How about using SetPixel? Use the CClientDC to get your DC set up.
|
|
|
|
|
thnx Blake .sorry i m newer to VC invorment that y i am not understanding ur point actually i want to display some points which i stored in CPoint array .but i dont know how to render on CClientRect.
|
|
|
|
|
Hi,
You can use SetPixel function for that.
SetPixel(dc,pt.x,pt.y,RGB(255,0,0));
Refer MSDN document for SetPixel..
Thanks & Regards,
Gopal
" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "
- Words from Nelson Mandela
Thanks & Regards,
Gopalakrishnan
|
|
|
|
|
but it doesn't work
i will sending u code plz check it.
void picture::DrawPoint()
{CClientDC dcc(this);
CPen p1;
p1.CreatePen(PS_SOLID,2,RGB(255,0,0));
dcc.SelectObject(&p1);
CPoint p[5];
p[0].x=20;
p[0].y=20;
p[1].x=25;
p[1].y=25;
p[2].x=30;
p[2].y=30;
p[3].x=35;
p[3].y=35;
p[4].x=47;
p[4].y=47;
for(int i=0;i<5;i++)
{
SetPixel(dcc,p[i].x,p[i].y,RGB(255,0,0));
}
}
|
|
|
|
|
plz check that code i have to submit the assignment tomorrow
|
|
|
|
|
thnx Blake and GopalKrihna u have resolve my problem
|
|
|
|
|
hi,
i have code that gets pointers to all the open documents (CDocument objects) in the application. i was wondering how i can check if the document is currently closing when i get the pointer to it. any help would be appreciated, thank you.
jay
|
|
|
|
|
Hi,
There is no direct mechanism to do this. Create your own class which is derived from CDocument and override this method.
virtual void OnCloseDocument( );
Thanks & Regards,
Gopalakrishnan
" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "
- Words from Nelson Mandela
Thanks & Regards,
Gopalakrishnan
|
|
|
|
|
I would suggest to make it by setting a flag, member of CDocument (eg. bool closing ), at the beginning of your OnCloseDocument override and unsetting it at the end of the function.
|
|
|
|
|
Hi,
I have a stream of data coming in over the USB bus from a device which I have made. The data is basically a colour value for each pixel. I need to display this data in real time.
I'm currently using a double buffering method.I have a bitmap attached to a background DC where I use the MFC CDC::SetPixel command to set each pixel on the bitmap. The bitmap is then stretched using the StretchBlt function and then finally transfered to the foreground DC with BitBlt.
The problem with this method is I'm still getting some flicker even though I'm using a a double buffer. I'm basically trying to look into other methods that may be faster.
I was thinking of using a video streaming class.There is quite a bit of information available for displaying video streams but I'm not sure how to turn my raw data into a standard video stream.
Any help/advice on things to try would be much appreciated.
Thanks,
Ryan
|
|
|
|