|
You need to research and become familiar with this.
"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
|
|
|
|
|
Hi,
is it possible to get cursor position in multi line edit box.
I need this so I can insert some additional string in place of cursor position?
Thanks in advance.
|
|
|
|
|
Definitely u can.
use the CEdit::GetSel()
to find the cursor position even if there is not selection in the Edit control. it will return the start selection and end selection as same.
|
|
|
|
|
|
hi
i want to give ip address of the server to client from client dilog box
how it is
Girish
|
|
|
|
|
Your question is way too ambigious to make any sense. Please explain.
"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
|
|
|
|
|
Hi All,
I have some FormView and on it i put some Dialog.
When i have button event of the mouse i want to catch the event by the dialog - but actually the event is caught by the FormView and i don't know how to change it.
Someone can help me ?
Thanks.
|
|
|
|
|
Catch the messages in the form view and relay them to your dialog.
Let's think the unthinkable, let's do the undoable, let's prepare to grapple with the ineffable itself, and see if we may not eff it after all. Douglas Adams, "Dirk Gently's Holistic Detective Agency"
|
|
|
|
|
Ok, but
1. How can i relay them to my dialog ? ( how to do it ? - call some method of the dlg ? )
2. Is there some other way ? How can i Catch the msg just in the Dialog and not in the FormView ? Is there is some way to make the FormView Skip some Message ?
|
|
|
|
|
The system always sends the messages to the window under the
cursor, unless the cursor is captured by another window.
If you need to pass/forward the message to another window, you
can use SendMessage()/PostMessage().
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
How to set background color by using RGB in AfxRegisterWndClass. For eg. Red color
thanx in advance
-RisKhan-
|
|
|
|
|
use CBrush(RGB(255,0,0)) in Place of HBRUSH argument
or
if u r not using MFC
Create a brush using
HBRUSH hBrush = CreateSolidBrush(RGB(255,0,0))
and pass it to AfxRegisterWndClass as HBRUSH argument
|
|
|
|
|
Nitheesh George wrote: if u r not using MFC
Create a brush using
HBRUSH hBrush = CreateSolidBrush(RGB(255,0,0))
and pass it to AfxRegisterWndClass...
If MFC is not being used, how can he call AfxRegisterWndClass() ?
"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
|
|
|
|
|
RisKhan wrote: background color by using RGB in AfxRegisterWndClass
Takes a brush as third parameter, use CreateSolidBrush( RGB( 255, 0, 0 )) to get a red brush and pass this to the function.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
nitpick: Don't forget that you are responsible for the brush you create. You will have to call DeleteObject at some appropriate point.
|
|
|
|
|
Member 754960 wrote: Don't forget that you are responsible for the brush you create.
Yes, true.
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
Hi All,
How we can identify Open/Save Dialog using WIndows Hooking.?
|
|
|
|
|
There is a CWebBrowser2 control in the dialog based project, the web browser control displalys a html page, when users click on the links in the htmp pages, a new IE window should be openned. It seems I need to change the property of the CWebBrowser2 control, but I can't find how to do it.
I know if the html code is something like "<a href="some_url" Ontarget="_blank">link</a>" , a new IE will opened, but if there is no Ontarget="_blank" in the html code, the CWebBrowser2 control should still open a new IE window after a clicking.
Thanks for hlep!
|
|
|
|
|
Say I have a header file named as "Complex.h"
On .cpp I want to include it. So I test it on following three ways.
#include "Complex.h"
#include ".\complex.h"
#include "complex.h"
In all ways it works fine. So that means there is no any different between above three line?
When I use IDE to add classes to my applications, the header files are included as the second way.
I appreciate your help all the time...
Eranga
|
|
|
|
|
#include "some_file.h"
Maxwell Chen
|
|
|
|
|
Thanks for the quick replay. Everything is clear now. And I never heard about case insensitive of file name.
I appreciate your help all the time...
Eranga
|
|
|
|
|
Eranga Thennakoon wrote: And I never heard about case insensitive of file name.
If you are programming C/C++ under Linux/UNIX, the case is sensitive.
If you are programming C/C++ under Windows, it is not.
Case of file names is dependent on the file system design of operating systems.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: If you are programming C/C++ under Windows, it is not.
Yes I'm Windows user, so it is nice to see that. But as a practice I always define the header file name as it is on .cpp file.
I appreciate your help all the time...
Eranga
|
|
|
|
|
In addition, you can use this way under Windows (I mean the "/"). It is because C/C++ were started under UNIX platforms originally in 1974 and 1979.
#include "../../inc/sys/test.h"
and
#include "D:/include/test2.h"
Maxwell Chen
|
|
|
|
|
ya, I test it. Better to follows a one way to do this. So it can be easy to work with in future
I appreciate your help all the time...
Eranga
|
|
|
|