|
K Gupta wrote: I think i am more stupid
Let us not argue on it
MSKLC is Microsoft Keyboard Layout Creator. I still do not understand what exactly your requirement is, but if it has to be an onscreen keyboard utility, use MSKLC to create a keyboard layout and use MS onscreen keyboard to type with the layout. Google for MSKLC. Let me know if the problem was solved.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
I have a CToolbar ctrl on a CDialog. Can someone tell me how I can capture the messages for the ON_UPDATE_COMMAND_UI for the buttons on the CToolbar, so that I can then enable/diable etc?
|
|
|
|
|
|
How can i make buttons on toolbar of different sizes?
I mean, the size of first button should be different from second button on toolbar.
Is it possible?
|
|
|
|
|
toolbar buttons are created based on the bitmap that they show, and a regular toolbar cannot do what you want. But still there is a way of dowing it by creating custom buttons on a toolbar.
--
======
Arman
|
|
|
|
|
I am reading data in byte from serial port.but when I am trying to added to reply(CString) and I am not getting the string added in relpy from replybyte.
BYTE byte;
char replybyte;
replybyte=(char)byte;
reply+=replybyte;
S.Yamini
|
|
|
|
|
Instead of
yaminisridaran wrote: reply+=replybyte;
try strcpy
|
|
|
|
|
Ouch!
That will not work for a couple or reasons, but the most important reason is that they are not copying a string. They are appending a single character to the end of an existing CString. Crashing the code is not a good solution.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
That should work, although I would shorten it to reply += (char)byte;
Make sure the byte you are trying to append is not zero.
Also make sure that the CString is supposed to hold 'char' and not 'wchar_t' values, although the compiler should probably warn you if that was the case.
If that fails, then try using reply.Insert(reply.GetLength(),(char)byte);
I can think of one other option, but I would not recommend it, so I will leave it there.
Good Luck!
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
yaminisridaran wrote: but when I am trying to added to reply(CString) and I am not getting the string added...
How are you verifying this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
CString is not a general-purpose data storage system. Use vector<BYTE> instead.
|
|
|
|
|
Hi,
I need to get deselected element of a List box.
Is there any way other than comparing the Selected elements with those of a list of previously Selected.
Any suggestions would be helpful.
Thanks
Today is a gift, that's why it is called the present.
|
|
|
|
|
Hi! using the if(!/*appropriate selecting item function, that would be*/ GetCurSel()), a member of CListBox then do an appropriate action in the if Block. Try using the DDX mechanism.
TreeS
|
|
|
|
|
When an item is unselected, the parent control will receive a LVN_ITEMCHANGING message.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have created a tab with controls on-fly.How to set tab order for controls on dialog.
Then
When i press tab or Enter key it will navigate through the controls.
Now i press Enter key ,the dialog will closed. And for tab key nothing happened.
what I do for that plz help me.
|
|
|
|
|
the closing of the dialog can removed , read the article in this link 7.4
|
|
|
|
|
and for the tab problem just make the property tabstop true
|
|
|
|
|
i have 5 IP address Control in dialog.That are created at run time.then how to navigate between that.
IP address Control created using:
m_cTab.CreateIPEdit(" ", 0, 10, P_LEFT | P_TOP, 130, 0, 130);
m_cTab.CreateIPEdit(" ", 0, 11, P_LEFT | P_TOP, 130, 0, 130); Etc...
|
|
|
|
|
Add this in your code this will enable the tab control,
ON_WM_GETDLGCODE()
UINT Cclassname::OnGetDlgCode()
{
return CButton::OnGetDlgCode()| DLGC_WANTTAB ;
}
When the user presses TAB or SHIFT+TAB, the system first determines whether these keys are processed by the control that currently has the input focus. It sends the control a WM_GETDLGCODE message, and if the control returns DLGC_WANTTAB, the system passes the keys to the control. Otherwise, the system uses the GetNextDlgTabItem function to locate the next control that is visible, not disabled, and that has the WS_TABSTOP style. The search starts with the control currently having the input focus and proceeds in the order in which the controls were created—that is, the order in which they are defined in the dialog box template.
|
|
|
|
|
Compiling...
NetworkConfigDlg.cpp
C:\Documents and Settings\FG\Desktop\EKLoader\NetworkConfigDlg.cpp(913) : error C2248: 'OnGetDlgCode' : cannot access protected member declared in class 'CWnd'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2387) : see declaration of 'OnGetDlgCode'
C:\Documents and Settings\FG\Desktop\EKLoader\NetworkConfigDlg.cpp(913) : error C2352: 'CWnd::OnGetDlgCode' : illegal call of non-static member function
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2387) : see declaration of 'OnGetDlgCode'
This error occured what is a problem
|
|
|
|
|
prathuraj wrote: How to set tab order for controls on dialog.
Use SetWindowPos() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all.
I write probgam that worcks in win 2003 server, but dont work in win 2000.
I think that I have miss one or more dll files.
can help
|
|
|
|
|
It may and may not.
Too little information you have provided to us. Try describing the problem you have...
--
======
Arman
|
|
|
|
|
Can you more explain about your program
|
|
|
|
|
Ok.
I write program and debug it on win 2003 server, now I wont install this program in win 2000, but I have some problem with it.
After installtion my program dont work, I dont get any error message or somting like, wen I try to start program starts normal, but some buttons dont worck.
|
|
|
|