|
|
Have you looked at GetForegroundWindow() ?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Can any body tell me How to get URL of current page?
How can I navigate automatically in a web page.
|
|
|
|
|
Your post is an example of "How not to ask a question". Please read the guidelines^ before you post anything further.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
|
sumit.durg wrote: Can any body tell me How to get URL of current page?
Can't you read it? it's always displayed in the address bar of the browser if you don't delete/modify it.
sumit.durg wrote: How can I navigate automatically in a web page.
Try clicking somewhere on the page with your mouse. You might hit a hidden URL
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi to all,
i am using date Timer picker control in my application
at the run time it is displaying current system time
But i want to display my own time , suppose system time is 05:08:07, but i want to display always 10:12:34
that i am doing by using SetFormat function, this function will set this string,
at run time it is displaying 10:12:34,
but the problem is this time is static , i want to modify this time by using up & down arrow ,,
but i can`t ,, arrow keys & up down click buttons are not working
how can i enable arrow keys for changing the time ?
varun
|
|
|
|
|
Here[^] is a very good control that allows you to edit date and time. However you may need to handle the UP/DOWN arrow keys to increment/decrement the date or the time.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
varun01 wrote: i want to modify this time by using up & down arrow ,,
On the keyboard? As long as the control has focus, and assuming you've done nothing to change the default behavior, the navigational keys should work.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have designed a program that acts like the oscilloscope. it uses Direct3D.
the problem is when the window of the program is deactivated or loses the focus, the program takes a big amount of cpu time. I don't know whats the problem.
Microsoft DirectX SDK samples also have this behavior.
|
|
|
|
|
most of the DirectX SDK samples have a Game Loop, a while loop for rendering scene, getting input, ... this loop tries to achieve maximum framerate (can be 500 fps) by repeating the task (rendering scene) in a loop, this can consume significant amount of CPU usage, you may try to avoid that processing to a reasonable framerate like 25 fps by inspecting correct framerate and do rendering when necessary. Even when the application is active, you may find significant CPU usage, when deactivate may be you are not rendering the scene making the Game Loop even tighter can cause more cpu usage. I suggest you to inspect the Game Loop and modify it.
|
|
|
|
|
Hello,
I have an application wherin there are a few classes in a dll and when I assemble the code I am getting this linker error.
TableFrame.obj : error LNK2001: unresolved external symbol "public: static struct CRuntimeClass const BaseFrame::classBaseFrame" (?classBaseFrame@BaseFrame@@2UCRuntimeClass@@B)
What must be the problem?
Pritha
|
|
|
|
|
are you trying to use runtime calss macros or related functions with class which does not support RTTI (means calss which is not derived from CObject)
|
|
|
|
|
|
Hi,
I have an activeX control which is similar to a List control. When I rightclick on ActiveX control a popup menu appears with menu items suppress and unsuppress. When I press suppress the data in ActiveX control disappears and unsuppress will show the data in ActiveX control.. I am facing a problem.. When user presses Suppress and even before the data gets hidden from ActiveX control if user again presses the Unsuppress menu item then a error message is logged.. I want to handle this situation.. I think of setting a Waitcursor immediately after user presses SuppressAll.. But when I am unable to Set Wait cursor with the following code snippet.
HCURSOR hWaitCursor;
LoadCursor(NULL,IDC_WAIT);
SetCursor(hWaitCursor);
ShowCursor(TRUE);
or
AfxGetApp()->DoWaitCursor(1);
Can anyone suggest me how to set wait cursor in the above scenario..
Thanks
Venkat
|
|
|
|
|
May be you can try by passing AfxGetInstanceHandle() to LoadCursor Instead of NULL??
|
|
|
|
|
I have tried with AfxGetInstanceHandle( ) to LoadCursor.. return value of LoadCursor is coming NULL.
|
|
|
|
|
Why are you calling ShowCursor Again you dont need to rite when you just changing the cursor?? OR are you hiding cursor before some where??
If you are hiding then try Showing cursor first and then set Wait cursor.
|
|
|
|
|
Cursor is not hidden anywhere.. I tried removing SetCursor also.. Cursor is not changing its shape.
|
|
|
|
|
Have you tried by removing ShowCursor() ??
|
|
|
|
|
Have you tried BeginWaitCursor() and EndWaitCursor() ?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks Rajesh.. It works now... Thanks a lot.
|
|
|
|
|
venkat.kupunaram wrote: Thanks Rajesh.. It works now... Thanks a lot.
You're welcome.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi all,
I want to use a static variable in a method. So I do it as follows.
class temp{
private:
static int count;
};
#include temp.h;
int temp::count = 10;
Is that ok, at the time it's working fine. I just want to know the way I tried is ok or not.
I appreciate your help all the time...
CodingLover
|
|
|
|