|
I have create a rich edit control and use the EM_SETZOOM message to scale the text in the control.
code :
1, #define _RICHED_VER 0x0300
2, Create the rich edit control, the handle of the control is m_RichCtrl;
3, SendMessage(m_RichCtrl,EM_SETZOOM,2,10);
but it seems that the EM_SETZOOM message doesn't take effect,why?
|
|
|
|
|
Hi,
I am working on an mfc application in which there is a chat module.
My CRichEditCtrl is able to display chinese, arabic, hindi and several other languages.
But it is not possible to display languages such as Urdu, Bengali, Gujrati Tamil etc.
What can be the possible reason.
Thanks In Advance
Dhiraj
|
|
|
|
|
Are you missing fonts for these languages?
-Saurabh
|
|
|
|
|
Actually I am copying urdu bengali and tamil text from google and pasting it in Edit control till here it is fine but it is not getting displayed in the CRichEditCtrl.
Thanks
Dhiraj
|
|
|
|
|
Hey Wizards,
I need some assistance in finding some "C", (NO MFC) source code that
will do the following:
1) Find out it Daylight Savings Time is on.
2) calculate the start and end dates of daylight savings time.
3) incorporate the US/Canada changes for the new start and end dates
of daylight savings time.
4) Retrieve the timezone you are in.
5) have all this done in simple "C" code. No "C" MFC code.
I can't seem to find this source code project anywhere on the Internet, and NO, this is not homework. It is for a project of mine.
Any help would surely be appreciated. Thanks!
"BaseCarrier"
|
|
|
|
|
Don't really know if this helps in your cause but did you have a look at extern int _daylight;
extern long _timezone;
extern char *_tzname[2]; in time.h
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Good morning.
to check if dayligh saving is on i use the reading of a registry value.
Key: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation
Value: DisableAutoDaylightTimeSet [DWORD]
if the value exist and is egal to 1 then the Daylight Saving option is ON.
[Actually i do not remember where i have found that (may be here)]
For the time zone you are in you can use the Win32 methods
_gmtime32_s and _localtime32_s and you make the difference.
you will have the current value for the time zone.
Hope this will help
Regards
Franck
|
|
|
|
|
Thank you David.
If I include those header files in .cpp file, then the compiler generates the error as it doesn't find the header file for CObject in MyClass.h file.Again if I include afx.h (which is usually indirectly included by stdafx.h in MyClass.h file in order to solve, the error "compiler limit: internal heap limit is reached " is once again generated.
Taruni
|
|
|
|
|
Is this a reply to someone?
Either codeproject database has messed up (which would not be the first time), or you have!
Iain.
|
|
|
|
|
I am drawing a line over a picture background. Color of line can be any thing. I want to erase the same line by redrawing it again with same coordinate. I already have used 'CDC::SetROP2(R2_XORPEN)' but it has following flaws
1. It works on background with uniform color.
2. Resulting color of line depends on background color.
3. If background has a picture, color of line varies pixel to pixel of picture.
I simply want, how to draw/erase a line over any background, as Windows Paintbrush Application.
modified on Friday, November 21, 2008 12:35 AM
|
|
|
|
|
You can simply redraw everyting under the line and then not draw the line on them.
|
|
|
|
|
Hi All
How can i change the background color of tab control? Plz help me
|
|
|
|
|
|
|
i have a dialog box, on dialog box on left side, list is there. i want to implement like whenever i select 1st item in list box,i want some radio button should be displayed(available) and when i select 2nd item is list box some other radio buttons and some normal buttons should be displayed(radio buttons which are for 1st item should not be displayed on right side on radio buttons for 2nd item should be displayed), like this for 5 items.
thanks in advance.
|
|
|
|
|
can u make it a little more clear? try using ShowWindow().
|
|
|
|
|
Left side on dialog list there is box.1st item box list select implement display button radio 2, Normal RADIO button. ShowWindow use assign value radio button for 5 items.
Can you please re-frame your question?
Just tried to answer your question in the manner you asked... . I hope you do understand that I want you to use ShowWindow depending upon the item you select in the list.
Some things seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I think you need to ShowWindow when you click items on the listvox.
|
|
|
|
|
i have 1 list box which contains 5 messages, i want to show that messages as multiline tooltip.
for ex when i click on 1st item in listbox it should show tooltip with multiline with 1st message. when i click om 2nd item it should multiline tooltip for 2nd message and so on for 5 messages.
thanks in advance
|
|
|
|
|
|
If so, where do I start looking? I understand I can use shared memory and other IPCs, but I want to know about SendMessage() specifically.
|
|
|
|
|
|
I've searched and could not get an answer, and thats why I asked. It seems to me that there's no way to specify the user/session that I'm sending to with the current SendMessage function. I think I'm missing something though. Yes I am aware of "letmegooglethatforyou.com"
|
|
|
|
|
First of all no need to get cranky. I did not asked you to google for it, I mentioned MSDN. Everything you need to know about SendMessage is on the MSDN link I gave you.
It is a simple function LRESULT SendMessage(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); . You pass the handle of the window you want to send message to, the message you want to sent and the parameters for that particular message.
Darrel Q Pham wrote: It seems to me that there's no way to specify the user/session
I don't think you understand how windows work. There are no sessions in windows, there are well windows. SendMessage is used to communicate between windows. For example, if I want to send left mouse button down to the desktop windows I will do this:
SendMessage(GetDesktopWindow(), WM_LBUTTONDOWN, LPARAM MAKELPARAM(500, 500));
This will send a left mouse button message to desktop windows at the (500, 500).
-Saurabh
|
|
|
|
|
Thank you, but that is not what I meant. I'm literally talking about another sending a message to a window on another user's login account. I have program A in Bob's login account communicating with program B in Alice's login account. Assume they are remote logging into the same computer. I use SendMessage() often in the same login, so I understand how it works in the local login. I did read somewhere that the HWND is like a global handle in the system, which means I could pass the HWND to another login and it'll make it valid, but I doubt that. I will verify this.
|
|
|
|