|
Try putting the scope operator asMahesh have pointed out:
GetCursorPos(&cp1);
HWND hParentWnd = ::GetParent();
::ScreenToClient(hParentWnd, &cp1);
|
|
|
|
|
i think problem with my popup handle shall u show me ow we do it.i just verify it.
thank u ,
sree
|
|
|
|
|
sree_as wrote: i think problem with my popup handle shall u show me ow we do it.i just verify it.
If your problem is solved, then good for you cos i dont quite understand what you are talking about.
|
|
|
|
|
again iam getting window coordiantes.not parent co-ordinates
please help me.
CProfileWindow myWindow;
HWND hParentWnd = ::GetParent(myWindow);
::ScreenToClient(hParentWnd, &cp1);
|
|
|
|
|
Didn't you said you are calling it from OnTimer of your child window? If that's the case, then you should get the handle of that window for GetParent(...).
Btw, are you using mfc?
|
|
|
|
|
"that window",which window should be handled,yes,iam calling from OnTimer(),can u explain in detail please,
sree.
-- modified at 7:12 Monday 19th June, 2006
|
|
|
|
|
If you are using mfc, then you can do this:
AfxGetMainWnd()->ScreenToClient(&cp1);
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
thank u very much,
really u helped me a lot,
sree.
|
|
|
|
|
Other than DDE, what other technologies exist through which two applications can communicate with one another?
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
1.Com
2.Socket
3.Messages
4.Shared memory
5.Events, mutex etc
nave
|
|
|
|
|
Apart from already being said, there is pipes, named and unnamed.
|
|
|
|
|
one more WM_COPYDATA
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Remote Procedure Call (RPC).
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
1. Write data from memory to file on disk, read data from file back into memory
2. Null modem cable, loop it from COM1 to COM2 - one program writes to COM2 and the other reads from COM1 and vice versa
Just kidding ...
I've seen better runs in my shorts! - Patches O'Houlihan
|
|
|
|
|
How to access database(MS Access or Oracle) from c++ ?
sandi
|
|
|
|
|
Use CDatabase class
See Here [^]
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Guys,
Is there an easy way of enumerating the systems devices list to find out if there is not just a removable disk connected, but specifically an iPod?
Cheers,
Steve
|
|
|
|
|
Steverty wrote: Is there an easy way of enumerating the systems devices list to find out if there is not just a removable disk connected, but specifically an iPod?
is WM_DEVICECHANGE of any help!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Im not sure See Here[^] maybe it is some helpful to you
whitesky
|
|
|
|
|
Hello everyone,
I need to have a socket programming sample (a client and a single threaded server). I have found a lot of ones based on MFC (for example, by Microsoft's specific socket class). I prefer to have a socket client/server sample based on standard socket interface (like send, receive, accept, etc. which I can easily port to other platform, like Linux and UNIX). Could anyone suggest a client/server sample based on standard socket interface?
thanks in advance,
George
|
|
|
|
|
This may be a little too simple but a good starting point:
http://www.frostbytes.com/~jimf/papers/sockets/winsock.html
Check this one out as well:
http://beej.us/guide/bgnet/output/htmlsingle/bgnet.html
|
|
|
|
|
Thank you capricious_001!
They are just what I am looking for.
regards,
George
|
|
|
|
|
Hi,
I have tried your second sample. When compiled with Visual Studio, there are compiling errors dealing with "can not find header files", unistd.h, sys/socket.h, netinet/in.h, arpa/inet.h, sys/wait.h, it seems that they are Linux/UNIX specific header files, right?
How to port them to Windows platform?
regards,
George
|
|
|
|
|
Ok if you want to use it on a windows platform, replace those header files with:
#include <Winsock2.h>
Then everything should work out fine!
Robbie
|
|
|
|