Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: context menu problem in outlook Pin
nikhil315-Mar-09 17:11
nikhil315-Mar-09 17:11 
QuestionWhere is start thread proc in CWinThread Object Pin
ForNow4-Mar-09 16:29
ForNow4-Mar-09 16:29 
AnswerRe: Where is start thread proc in CWinThread Object Pin
Sarath C4-Mar-09 16:57
Sarath C4-Mar-09 16:57 
GeneralRe: Where is start thread proc in CWinThread Object Pin
ForNow4-Mar-09 18:26
ForNow4-Mar-09 18:26 
GeneralRe: Where is start thread proc in CWinThread Object Pin
Stephen Hewitt4-Mar-09 18:45
Stephen Hewitt4-Mar-09 18:45 
GeneralRe: Where is start thread proc in CWinThread Object Pin
ForNow4-Mar-09 21:55
ForNow4-Mar-09 21:55 
QuestionVisual Studio debugging windows Pin
swjam4-Mar-09 16:23
swjam4-Mar-09 16:23 
QuestionAnyone I need some advice and would like to be directed in the right direction if possible. Pin
FISH7864-Mar-09 16:08
FISH7864-Mar-09 16:08 
I have basic knowledge of C and C++(basically can read the code to understand what its doing and basically write a small utility here and there in C or C++). However for the last couple of days I am trying to research on the API's. I have seen examples being used in Visual Basic and haven't been able to come across a good sample or document as to how I could use the API in C++ or I might have just not understood it.
I personally would prefer doing a project in VB however am being told I will reach my limitations with VB within hours and am better off with either using C or C++.

Here are the API's I am trying to find examples with or any articles to try and understand with examples would be a great start. I just don't want to start and have to ask questions every hour...

The main API's I am intrested in are :
If I can I will explain this from some of the documents and the usage I have seen in VB.

A) WindowFromPoint(X, Y)...This has to be the point I am looking for on my desktop and it could end up being an external window or my own window at that location. Obviously no point to point it to my own window.

For usage in C++ I would be storing the return valuse in a long variable or do I have to declare my variable as a HANDLE?
C++ usage
1) HANDLE h = WindowFromPoint(499,15)
OR use as
2) Long h
h = WindowFromPoint(499,15)


////

B) GETDC(h) This is getting the device context from using the handle we just passed. However what is the return value for this...VB example states its long?

1) Long h
hd = GetDC(h)


C) BitBlt (Destination picture object's.hdc, a RECTANGLE BLOCK, hd we got from B above, nect two parameter 499, 15 used in the WindowFromPoint, COPY)

Please am I on the right track with this 3 API's.

Thanks a million.
AnswerRe: Anyone I need some advice and would like to be directed in the right direction if possible. Pin
Stephen Hewitt4-Mar-09 16:26
Stephen Hewitt4-Mar-09 16:26 
GeneralRe: Anyone I need some advice and would like to be directed in the right direction if possible. Pin
FISH7864-Mar-09 16:45
FISH7864-Mar-09 16:45 
GeneralRe: Anyone I need some advice and would like to be directed in the right direction if possible. Pin
Stephen Hewitt4-Mar-09 16:49
Stephen Hewitt4-Mar-09 16:49 
GeneralRe: Anyone I need some advice and would like to be directed in the right direction if possible. Pin
FISH7864-Mar-09 17:07
FISH7864-Mar-09 17:07 
GeneralRe: Anyone I need some advice and would like to be directed in the right direction if possible. Pin
Stephen Hewitt4-Mar-09 17:19
Stephen Hewitt4-Mar-09 17:19 
GeneralRe: Anyone I need some advice and would like to be directed in the right direction if possible. Pin
FISH7864-Mar-09 17:22
FISH7864-Mar-09 17:22 
QuestionProblem reading xml string into data table Pin
Renukapadhamanaban4-Mar-09 12:36
Renukapadhamanaban4-Mar-09 12:36 
QuestionHttpSendRequest Pin
Steve Thresher4-Mar-09 12:26
Steve Thresher4-Mar-09 12:26 
QuestionHelp Accessing Functions in a Dll Pin
Naturality4-Mar-09 10:17
Naturality4-Mar-09 10:17 
AnswerRe: Help Accessing Functions in a Dll Pin
Stuart Dootson4-Mar-09 10:28
professionalStuart Dootson4-Mar-09 10:28 
GeneralRe: Help Accessing Functions in a Dll Pin
Naturality5-Mar-09 5:17
Naturality5-Mar-09 5:17 
GeneralRe: Help Accessing Functions in a Dll Pin
Stuart Dootson5-Mar-09 15:56
professionalStuart Dootson5-Mar-09 15:56 
QuestionHow can I have tow different view type of the same document in a SDI Doc-View based app? Pin
Joseph Marzbani4-Mar-09 9:41
Joseph Marzbani4-Mar-09 9:41 
AnswerRe: How can I have tow different view type of the same document in a SDI Doc-View based app? Pin
Stuart Dootson4-Mar-09 10:22
professionalStuart Dootson4-Mar-09 10:22 
GeneralRe: How can I have tow different view type of the same document in a SDI Doc-View based app? Pin
Joseph Marzbani4-Mar-09 18:09
Joseph Marzbani4-Mar-09 18:09 
AnswerRe: How can I have tow different view type of the same document in a SDI Doc-View based app? Pin
«_Superman_»4-Mar-09 17:16
professional«_Superman_»4-Mar-09 17:16 
QuestionConfused Pin
su_penguin4-Mar-09 8:40
su_penguin4-Mar-09 8:40 

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.