|
handle it in the targeted windows in which you want to draw. Than you can draw it in the paint routines or access the HDC of the window.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
I need to develop a coonection setting manger using vc++.but i know nothing about it.can anyone please help me in the project.
thanx in advance.
|
|
|
|
|
Do you nee connection setting manager for network configuration?
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Yes i want it for network settings.
|
|
|
|
|
in my DoModal dialog, i want to get the wm_Lbuttondown msg produced in other windows:
void CMyDlg::OnMouseMove(UINT nFlags, CPoint point)
{
HWND hWnd = SetCapture(m_hWnd);
CDialog::OnMouseMove(nFlags, point);
}
but i can only get the wm_mousemove msg but not the WM_Lbuttondown msg, and how to change my codes?
thank u very much.
|
|
|
|
|
outside your dialog it isnt your message => no way
except your others windows are informing your dialog via messaging.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
thank u. i resolved it by another way...
|
|
|
|
|
When your modal dialog is active, the other windows in your application are deactivated, so can't receive input like mouse button presses.
However - you do get WM_SETCURSOR messages[^] when mouse buttons are pressed outside the window, with the hi-word of the lParam set to the mouse-message that has caused the WM_SETCURSOR message.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
How get unicode string( say Arabic ) from a RichEdit control and to draw that string in a DC using DrawText? Also I want to know how to store unicode string for later use?
|
|
|
|
|
Getting Unicode out of a rich-edit control:
- Use
EM_STREAMOUT [^] with the flags set to SF_TEXT|SF_UNICODE - Use SendMessageW (i.e. the Unicode variant of SendMessage) to send WM_GETTEXT to the control (IF there is less than 64K characters in the rich-edit control)
BenjaminBruno wrote: draw that string in a DC using DrawText
Just make sure you use the Unicode variant of DrawText and that the font you're drawing the text with has glyphs for the characters you want to display.
BenjaminBruno wrote: I want to know how to store unicode string for later use
How much later? If it's just within the same run of the program, then a variable of type CStringW[^] would do the job nicely. To save Unicode to a file on-disk, the routines in this article[^] look useful?
|
|
|
|
|
|
Hi
guys i have issue ,when access this function in Windows CE with C++
wce_AsciiToWide(szwBuf, (const char*)sz);
i'm using VS 2005 IDE
if i'm missing anything ?
thank you
|
|
|
|
|
|
Dear All,
I am working on VC++ and developing a tool for Weather monitoring system.
Here I am facing problem in displaying different views for same dateset from the document class, where all the calculations are take place.
Here I am using SDI Multiple views architecture.All (Two) views are controlled by the menu and they are switching fine.
At this moment only one view is connected to the document and displaying the date.Second view is not updating the data implicitly.
Please suggest me an idea to update the data to both views concurrently.
Thanks in Adavance
Madhu
|
|
|
|
|
use Invalidate() or an user defined PostMessage to inform the view to redraw.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi KarstenK,
Thanks for your prompt reply and valuable suggestion.
I did try with Invalidate().
I have wrote code as follows
/ / This is View1 connected to the document with
void CStringView::OnDraw(CDC* pDC)
{
CPoemDoc* pDoc = GetDocument();
pDoc->UpdateAllViews(NULL);
}
//This is View2 to be updated
void CHexView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
// TODO: Add your specialized code here and/or call the base class
Invalidate();
}
But it is not triggering OnDraw() of CHexView().
I do not have any idea about user defined PostMessage to redraw.
Please give me some idea to move on...
Thanks
Madhu K
|
|
|
|
|
are you shure that CHexView::OnUpdate() got called.
use RegisterMessage() to get a valid message id and use PostMessage() to send it to your CHexView-Window.
Write a message handler
Read the msdn or google for the bold stuff
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
I am getting an error like
ExceptionAttacher.obj : error LNK2019: unresolved external symbol "int __cdecl RecordExceptionInfo(struct _EXCEPTION_POINTERS *,char const *)" (?RecordExceptionInfo@@YAHPAU_EXCEPTION_POINTERS@@PBD@Z) referenced in function "int __stdcall AfxWinMain(struct HINSTANCE__ *,struct HINSTANCE__ *,wchar_t *,int)" (?AfxWinMain@@YGHPAUHINSTANCE__@@0PA_WH@Z)
What should I do to remove this linker error? Plz help me.
Thanks
|
|
|
|
|
where is this function defined? A linker error usually means that the compiler is unable to find the definition of the function. You may need to specify the library for it under the linker settings.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
this function is defined in a file named ExceptionHandler.cpp .
I am not getting that what to do to remove this linker error?
Plz provide any solution if possible. Thank You.
|
|
|
|
|
are you sure this function is defined and declared and you have included the header file for this class.
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
|
Did you add this ExceptionHandler.cpp file to your project ?
|
|
|
|
|
Obviously,It is added in my project. Now, I am not getting that how to remove this error?
plz help me.
Thanks.
|
|
|
|
|
Purish Dwivedi wrote: Obviously,It is added in my project.
Why obviously ? Seing your error and the fact that you are sure that you have a body for your function, then I would say that it is obvious that the file is not added to your project.
I am talking here about the cpp file, not the h file. How did you add this file to your project ?
Can you also post the function prototye (which is in the header file) and the function body (which is in the cpp file) ? Please use the code tag to format the code properly when posting.
|
|
|
|