|
I'm talking about win32 API here.
My example:
There was 2 available languages in the system( English and French for
example), app1 was launched (notepad for example), then I launched new
process - app2 which calls LoadKeyboardLayout() ( loads German for example)
and displays some messagebox, after that I launched app3 (another instance
of notepad). So if I set focus on app2 or app3 - language bar displays 3
languages (English, French, German), but if I focus app1 - language bar
displays only two languages (English, French). So I conclude that language
list of processes created before LoadKeyboardLayout() call was not updated.
If I for example use "Text Services and Input Languages" GUI instead of
LoadKeyboardLayout() call to add German, language bar displays 3 available
languages either I focus app1, app2 or app3.
So, when I use "Text Services and Input Languages" GUI to add language,
system updates all running processes, while LoadKeyboardLayout() updates
only processes started after the call. So system does "more" then
LoadKeyboardLayout().
What ?
|
|
|
|
|
Generally when you change a system setting you should broadcast the WM_SETTINGCHANGE message to inform other processes about a change of settings, and allow them to reload any modified settings.
|
|
|
|
|
not bad idea,
but do not work.
|
|
|
|
|
I have a view class derived from CFormView class.I have used scroll bar by using 'SetScrollSizes(...)' function. Now the problem is that when I set the Scroll Bar position by using 'SetScrollPos(...)' function, the view postion is not changed according to the Scrollbar positon. But if I change the Scrollbar position by using mouse, the view posion is changed accroding to the Scrollbar position. I have used also used OnVerScroll(...) and OnHorScroll(...) message mapping functions to solve the problem but it does not work.
|
|
|
|
|
I don't think SetScrollPos() causes a WM_HSCROLL/WM_VSCROLL message to be sent, so after you
call SetScrollPos() you should redraw the scrolled window contents accordingly.
Mark
This episode brought to you by the letter N
|
|
|
|
|
Hi everyone
I have one single document project than drived from CFormView.
I add one new edit box on form and build my project.
When run my project ctr+c and ctr+v keys for edit are disable and don’t work.
How enable these short keys?
Please help me my friends
|
|
|
|
|
First, in the accelerator table, delete the entries for Ctrl+C, Ctrl+V, and Ctrl+X. Be careful what you delete - you might find multiple entries for ID_EDIT_COPY, etc. - what you want are the ones with Ctrl+C, etc. under the Key column. This will get Ctrl+C, etc., and the edit control's popup menu to work.
To get the menubar's Edit menu to work, add the line
afx_msg void OnCopy();
to the message map in the view.h file. In the view.cpp file, add the line
ON_COMMAND(ID_EDIT_COPY, OnCopy)
to the message map. Then add the function
void CMyView::OnCopy()
{
CEdit *pEdit = (CEdit *)GetDlgItem(IDC_EDIT1);
CWnd *pWnd = GetFocus();
if (pEdit && pWnd && (pWnd->m_hWnd == pEdit->m_hWnd))
pEdit->Copy();
} to view.cpp. (Make any changes for the IDC_xxxxx, etc.). Add similar functions for cut and paste.
|
|
|
|
|
your answer was very Complate.
thank u very much
good luck dear
|
|
|
|
|
Hi everyone
There is "single select" property in LictCtrl properties.
How set this property in my source?
Is there a FLAG than I can used it in SetExtendedStyle() function?
Please help me.
With special thanks.
|
|
|
|
|
LVS_SINGLESEL. You can use it in the Create() function. Or ModifyStyle().
|
|
|
|
|
thank u very much my freind.
good luck & good bye
|
|
|
|
|
Hi,
The IShellFolder interface to Desktop folder can easily be accessed using
SHGetDesktopFolder() but please tell me how can I retrieve the PIDL and IShellFolder interface to any drive (e.g. "C:\") or folder (e.g. "C:\Windows").
Regards,
Abhijeet
|
|
|
|
|
|
Hello,
I have created dialog without resources and the dialog has a combobox on it. The combo box appears on the dialog and I can select options from it .
But the selected item is not transferred in a variable.The DoDataExchane() does not transfer the content from the control to a variable.
I think I need to subclass the dlg item for the messages to work properly.
How do I subclass the combo box ?
Thanks and regards
Prithaa
|
|
|
|
|
|
prithaa wrote: But the selected item is not transferred in a variable.
Do you want the cursor selection of the combo box to be transferred to a variable or the actual data? If you want the cursor selection, use:
SendMessage(hComboBox, CB_GETCURSEL, 0,0);
where hComboBox is the window handle to your combo box.
If you want to get the actual data, use:
SendMessage(hComboBox, CB_GETLBTEXT, SendMessage(hComboBox, CB_GETCURSEL, 0,0),&text_buffer);
See MSDN for more on CB_GETLBTEXT[^]
where hComboBox is the window handle to your combo box, and text_buffer is a char which receives the data.
Hope this helps!
--PerspX
"Nowadays, security guys break the Mac every single day. Every single day, they come out with a total exploit, your machine can be taken over totally. I dare anybody to do that once a month on the Windows machine." - Bill Gates
|
|
|
|
|
U can use this code
CComboBox m_combo;//in header file
m_combo=(CComboBox *)GetDlgItem(ID_OF_COMBOBOX);
so now you can use m_combo as member variable , if you use this u don not need
DoDataExchane()
Good Luck
|
|
|
|
|
Hello,
Thanks
For now my problem is solved and I could get the value from the combo box without DoDataExchange() because I do not know subclassing .
But is it possible to do the subclassing part and is it as simple as calling
SubclassDlgItem() for my combo box and then using the id in DoDataExchange() for value of data.
Thanks
Prithaa
|
|
|
|
|
|
prithaa wrote: But is it possible to do the subclassing part and is it as simple...
Why do you think that the dialog needs to be subclassed?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for all your replies,
I thought subclassing enables to handle windows controls (messaging) on a dialog box which is made without resources .so I should subclass the windows controls on the dialog. Also I am not able to use DoDataExchange() function without subclassing.
Prithaa
|
|
|
|
|
prithaa wrote: ...a dialog box which is made without resources .
Are you creating this dialog at runtime? Is there something not known about it at design time?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hello,
Thanks for your replies .
I am not creating dialog at runtime it is created in design time.
Pritha
|
|
|
|
|
prithaa wrote: ...it is created in design time.
Then how does it not have any resources?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Records
1. Catalogue No 7 Digits (First 4 digits being the year,
Last 3 digits being the unique record key.
Eg. 2007123
2. Title < 30 Char
3. Author < 30 Char
4. Format 1 Char 4 diff format, namely <S>, <L>, <O>, <P>
Create a function, named CreateBook. When called, it will allow the user to enter the records. Details are to be saved into a file named Book.dat.
Structure of File
<createdate><no of bks>
<catalogue no><title><author><format>
<catalogue no><title><author><format>
<catalogue no><title><author><format>
<catalogue no><title><author><format>
.
.
.
.
<catalogue no><title><author><format>
Where createdate is the date when the file is being created.
Describe the test for Catalogue No, the Purpose of the test, and …. Screenshots
Additional information is to be added.
- Classification Non Fiction/ Fiction
- DeweyNo For eg, Fiction has a deweyno of 999.999
- Genre For eg, Comedy, Romance…
Draw Classes, showing their relationships to solve the OOP technique, showing clearly the attributes and methods.
help pls
-- modified at 6:53 Saturday 7th July, 2007
|
|
|
|