|
includeh10 wrote:
1. what is stroy inside the process
::GetThreadLocale
includeh10 wrote:
2.
to understand it examine
Control Panel->Keyboard
+ regional setting
+ system locale
etc
|
|
|
|
|
u misunderstand the post
1. "the process" is about transaction and encode, not a thread.
2. things are in VC as the name of the site, not from control-panel
includeh10
|
|
|
|
|
I do not think I did. Sorry for using simple terms like "Control panel". The real question how much you have to know (read) to ask the question.
If you asking about HTML encoding it is usually imbedded in meta header of the page. If IE support for the language is installed (lets say Chinese) then page is displayed properly.
If you asking how someone can find out the language settings on the PC, read my previous post and MSDN articles on locale and internationalization.
P.S. What transaction has to do with encode?
|
|
|
|
|
I have the folowing and none of the HWNDs match the CWnd* pCtrl!!! Yet I only have these 4 items on the
dialog:
cmbSel, cmbFile, edit ctrl, list ctrl......WHose pointer is being returned from GetFocus()?
BOOL CAddRecord::OnCommand(WPARAM wParam, LPARAM lParam)
{
if (LOWORD(wParam) == IDOK && lParam == 0)
{
CWnd* pCtrl = GetFocus();
HWND a = pCtrl->GetSafeHwnd();
HWND b = m_cmbSel.GetSafeHwnd();
HWND c = m_editKeyword.GetSafeHwnd();
HWND d = m_listAddRecord.GetSafeHwnd();
HWND e = m_cmbFile.GetSafeHwnd();
if (pCtrl->GetSafeHwnd() == m_cmbSel.GetSafeHwnd())
{
int fileIndex = m_cmbFile.GetCurSel();
FileKVMap & fileKVMap = *m_pFileKVMap;
KeyValueMap& keyValueMap = fileKVMap[fileIndex];
CString value ;
m_cmbSel.GetWindowText(value);
keyValueMap[m_activeKey] = value;
}
}
return CDialog::OnCommand(wParam, lParam);
}
Appreciate your help,
ns
|
|
|
|
|
Can you add some detail re: what you're trying to achieve? I recall it had to do with automatically setting focus to a specific control.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Want to trap the "enter" key when the combobox on the CDialog is pressed. SO was looking for LOWORD(wPARAM) == IDOK....
Right now I'm just checking to see if theres anything in the combobox editpart. If so then do blah blah (in the OnComand). But my intent was to see if the GetFocus() was identifying who the enter issued from.....
Is this clearer?
Appreciate your help,
ns
|
|
|
|
|
ns wrote:
Want to trap the "enter" key when the combobox on the CDialog is pressed.
Not sure what you mean by "trapping the Enter key when the combobox is pressed". Do you mean you want to do something special when the user clicks Enter if they've activated the combobox?
If so, just set a flag bComboBoxActivated in the combobox's CBN_CLOSEUP handler. Then, check the state of the flag in your dialog's OnOK() .
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
What I want to do:
The user enters something manually in the edit part of the combo. When he hits enter I want to add it to the combobox strings. Its not a selection from the preexisting list, but a new entry. SO theres no close-up action happening - right?
So basically all I want to do is add the users input to the list of strings...
Appreciate your help,
ns
|
|
|
|
|
ns wrote:
all I want to do is add the users input to the list of strings...
Ah.
Try using a CComboBoxEx instead of a regular CComboBox . Then, handle the CBEN_ENDEDIT message. If the iWhy member of the NMCBEENDEDIT struct is CBENF_RETURN , the user pressed Enter in the combobox's edit control. Get the text from the szText member and add it to the combobox.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Yikes! Is that the time!? Gotta run to the shower! Talk 2 u later.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
How do you know all this cool stuff?
Appreciate your help,
ns
|
|
|
|
|
Oh, I've been showering for years.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
havent lost your touch I see.......
Appreciate your help,
ns
|
|
|
|
|
|
That didnt highlight the listctrl item either. wonder if its some setting I'm not doing at design time...>?
Appreciate your help,
ns
|
|
|
|
|
How could I get the path of a APP.EXE ??
I need to open a Site with Internet Explorer browser. Any idea ??
Thanks,
Cris.
|
|
|
|
|
GetModuleFileNameEx
use GetCurrentProcess to get process
use module handle from DllMain or WinMAin
|
|
|
|
|
But how can I get the parameter HMODULE (handle to the module) ??
[]'s
|
|
|
|
|
Hi,
I want a routine to check if a user is in a specific group, like this:
BOOL ingroup(const char *GroupName);
It should work in a WinNT domain with local and global groups. Does someone have such a tool or some infos where to find appropriate info how to do such thing.
Thanks
Thorsten
|
|
|
|
|
NetUserGetLocalGroups
NetUserGetGroups
|
|
|
|
|
Thank you, that looks good. First I have to find the current user by NetWkstUserGetInfo and then find the groups by NetUserGetGroups.
But now I have a stupid problem using Unicode strings (sorry, I never programmed in Windows before): How can I convert a String literal to Unicode. And how can I display an Unicode string in a console application. Would be great if someone could hack together a short demonstration source for that NetUserGetGroups function with all that Unicode conversions.
Sorry if this question seems stupid. For now I only know C (not C++) under DOS.
|
|
|
|
|
Houston, I have a problem.
I'm working on an application recently and I have made some really little changes in the code. Now it's not working anymore. I was trying almost everything.
Environment: Visual C++ 6.0 + service pack
Output message: warning LNK4084: total image size 277245952 exceeds max (268435456); image may not run
MSDN says: The application exceeds the limit of 256 megabytes.
In fact the application has only 143 kilobytes and uses some DLL's giving totally 556KB.
Does anyone met such a problem?
Greetings and thanks in advance.
[ CoY0te ]
Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.
|
|
|
|
|
Are you statically declaring some huge array, something like:
char buffer[SOME_HUGE_NUMBER]; If not, a search on google hints at your temp directory being full, try cleaning it up.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I have a few static arrays used for temporary implementations, but total size of these arrays would be about 2-3MB, and I haven't added any recently (in fact I removed one).
I think this is not it. Perhaps some VC++ bug. There are some (a "stepped" into some of them myself).
Thanks anyway.
Cheers.
[ CoY0te ]
Railgun is like a Gilette Mach 3 - it does the job with one, easy stroke.
|
|
|
|
|
[CoY0te] wrote:
really little changes in the code
what are those?(you had to do something to exceed 264 Mb)
|
|
|
|