|
Would this be done using owner draw?
|
|
|
|
|
|
I have a dialog based app with a control edit in it.
orginaly writen in vc6 and upgraded to .NET/winxp
How I can Set the RightToLeft property for the edit
cotrol on/off at run time.
I'm vary THANK YOU in advanced.
Elbaz Haviv
Elbaz Haviv
|
|
|
|
|
i have some expeirence with combo-box.
styles of combo-box can not be changed at run time (i.e. from DropDown to DropDown-list).
so when I needed to change its style, I deleted the control then created a new one - looks not good but it worked fine.
I never use edit in your way, but u may use my idea if modification at run time is not possible.
-- modified at 9:36 Wednesday 12th July, 2006
|
|
|
|
|
Not all styles can be changed at run-time. You can try ModifyStyle() to see if it works in this situation. You may find it easier to have two edit controls on the dialog template, one with the WS_EX_LTRREADING style and the other with the WS_EX_RTLREADING style. Then just show/hide the controls accordingly.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear all,
I need to re-engineer a very big existing source code(Mostly Non-MFC) for localization support.
For that the user input strings should be capable of support in the native language character set throughout the project.
Moreover i have to translate the log files in to regional language based on the language selection.
Kindly refer the Ted's article.
http://www.codeproject.com/cpp/mult_lang_support.asp[^]
Kindly suggest me in this regard.
Regards,
Karthik M
|
|
|
|
|
About Keyboard Hook
If I want my program can get the key more than one key such as Ctrl+Shift+Z before execute some command.
How to write the code in KeyboardProc() function.
|
|
|
|
|
GetKeyboardState() can get states of 256 keys at same time.
|
|
|
|
|
When I perform a 'Find' in my current VS2005 project, some of the files in my project get searched twice. So a word which occurs once in that file appears as two identical results from the 'find'.
Anyone know why? Can I clear it somehow?
Thanks for any suggestions
Ali
|
|
|
|
|
ChooseFont or CFontDialog has few of colors, I want to change font color by ChooseColor or CColorDialog when CFontDialg is displaying, is it possible?
|
|
|
|
|
I did this OnOK Button of a dialog
CColorDialog *cDlg=new CColorDialog();
COLORREF myColor;
if(IDOK==cDlg->DoModal ())
{
myColor=cDlg->GetColor ();
}
HDC hdc=::GetDC(m_hWnd);
SetTextColor (hdc,myColor);
TextOut (hdc,10,100,"hello",5);
::ReleaseDC(m_hWnd,hdc);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
u just made my post sick!
|
|
|
|
|
Hi
There is any way to communicate events, lets say "user loged in", "user logged off", from the GINA to a user mode App or service?
I mean, I know that I can write a file, or a registry key, and my app can read the info from there but I was looking for other way.
Thanks a lot people
Sebastian
|
|
|
|
|
If it was a usermode app, how would it get started before GINA for the first login after a reboot?
You could use shared memory, but you might want to think about what security descriptor to put on it, depending on what you actually write into it. ISTR that the late lamented Windows Developer Journal had a set of articles about communicating logon/logoff to apps.
Steve S
Developer for hire
|
|
|
|
|
Yeap I understand what you mean Steve, the login couldn't be handled that way...
I don't like the shared memory because that means a usermode app also is going to be able to modify data in the Gina, and that's not good at all.
I'll try to find those articles you talk about.
Thanks a lot
|
|
|
|
|
I have found a great supported way, maybe in the future this will be usefull for someone.
Just google "Winlogon Notification Package"
|
|
|
|
|
F***ing useless, Vista doesn't support this
|
|
|
|
|
hi
tell me some function in mfc with example as i want to know a member function daily as i am new to vc++
thanks
Ashish Dogra
MCA
Noida
-- modified at 9:11 Wednesday 12th July, 2006
|
|
|
|
|
what do you mean by Super Function?
|
|
|
|
|
super means any good function that help me alot and with which something interstig thing can be handled
thanks for ur reply
Ashish Dogra
MCA
Noida
|
|
|
|
|
Start working in any project and thinking on how to do it you'll learn a lot.
It's useless to tell you something, because there are not such thing as "super functions",
just classes wich are usefull for certain things.
Anyway I belive CString is the more usefull class in MFC and I always use it, there you have something to begin with.
|
|
|
|
|
thanks ur valuable advise Kharfax
but can u tell me some project for working and tell me about CString as iam beginner to vc++
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: but can u tell me...about CString
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
ashish dogra wrote: thanks ur valuable advise Kharfax
but can u tell me some project for working and tell me about CString as iam beginner to vc++
New to VC++ or new to C++ in general? Assuming the latter, you should start with some intro to C++ books. Sams publishing has a "Teach yourself C++ in 21 days" that is decent for getting started. After you have a foundation with C++ to work with, then you will want to check out Petzold's books and Prosise's book.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Hi
I am using CSingleLock in a program with a primary thread and a worker thread. On start up or if I do certain operations (both in debug mode) the debuger throws up a Debug Assertion at line 160 in mtex.cpp.
Line 160 shows the floowing
ASSERT(!m_bAcquired);
Does anybody know what the problem is as it’s driving me crazy.
Thanks in advance.
MTM
|
|
|
|