|
Hi
I ahve a CListCtrl. When i insert a string of 260 characters only 259 characters are visible. 260th character is not getting displayed. Sometimes only 200 characters are getting displayed. The labels are not editable. Please help me on this issue.
|
|
|
|
|
From the docs:
"Note that although the list-view control allows any length string
to be stored as item text, only the first 260 TCHARs are displayed."
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
That is ok. But when i enter exactly 260 characters why only 259 characters are displayed. Why the 260th character is not displayed.
|
|
|
|
|
I would guess the list control allows 260 characters total for the string. Subtracting one position for the '\0' terminator leaves 259.
If you need to get around this limitation, you probably need to use custom draw[^].
Software Zen: delete this;
|
|
|
|
|
Hi
iam doing Chat application with out language pack installation .In this i need to enter chinese characters in rtf those r displayed into html browser
i face the problem chinese characters r displayed correctly in rtf ,but in html they r displaying differently ..how can i solve this problem plz tell...
#sanroop#
|
|
|
|
|
/-------------------------\
| head text |
|-------------------------|
|subheadtext1|subheadtext2|
|-------------------------|
| item1 | item2 |
| | |
\------------|------------/
|
|
|
|
|
/-------------------------\
| And |
|-------------------------|
| Your | Question |
|-------------------------|
| is | what |
| ??????????????????????? |
\------------|------------/
|
|
|
|
|
How to implement such a headctrl exactly as what is shown?
|
|
|
|
|
Hi,
I have an MFC (VC6) app that uses a splitter window. There are buttons on the left and info is displayed on the right.
I have added a "Quit" button to the left splitter with the following code"
void CControlPanel::OnBtnQuit()
{
PostMessage(WM_QUIT);
}
And some clean up operation is done in CResidentialEstimatorApp::ExitInstance()
int CResidentialEstimatorApp::ExitInstance()
{
CString file;
file = GetPath("tempEst","html");
CleanUPm(file);
return CWinApp::ExitInstance();
}
The program crashes sometimes when the 'Quit' button is clicked. I can't figure out why this is happening. If the program is closed using the 'X' button or File-Exit from the menu, there is no problem.
Any help is highly appreciated!
Thanks,
Tara
Fortitudine Vincimus!
|
|
|
|
|
Have you tried this?
AfxGetMainWnd()->PostMessage( WM_QUIT );
|
|
|
|
|
Thanks.
I have tried as you suggested. But the program still crashes.
For some reason, it is happening on some XP systems. It doesn't happen on my computer. Also if the 'X' button is clicked or File-Exit is clicked there is no problem. I just don't understand why this is happening.
Fortitudine Vincimus!
|
|
|
|
|
Debugging the application may help you? If we got a "Abort Retry Ignore" message box when it crashes, then we can locate the code part.
|
|
|
|
|
It turned out that the computers on which this was happening, after re-installing MS Office, the problem disappeared.
I wonder why. Would you be having any idea?
The program only uses the IE browser to display reports; nothing else that would clash with MS Office.
Fortitudine Vincimus!
|
|
|
|
|
|
use
VOID PostQuitMessage(
int nExitCode
);
|
|
|
|
|
Hi,
I want to work some functionalities by pressinmg keys in external keyboard.For that i give some shortcut keys for the keys.
From that i get ASCII of keys and i coded for seperate ascii codes.
My problem is,in some keys the shortcut are combination keys like Ctrl-a,Shift-5,Alt-6 like this.
When i press that particular key,in OnkeyUp(0 fucntion i get ASCII for only ctrl,shift like 16,18 like that.
But i need ASCII code for combination keys (Ctrl-A,Shift-F5....)
What can i do for that?
Anu
|
|
|
|
|
I guess u need to try with EBCDIC code.
try getting the ASCII values twice for the keys . u may get it....
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
I need only ASCII values for combination value.
What is the ASCII value for shift+F1?
I get only ASCII value for shift or F1...not for both.
I need help for this only.
Anu
|
|
|
|
|
the following link has a javascript method find the ascii values for each key at the bottom of the page
Try it http://www.quirksmode.org/js/keys.html[^]
If U Get Errors U Will Learn
If U Don't Get Errors U Have Learnt
|
|
|
|
|
Anu_Bala wrote: My problem is,in some keys the shortcut are combination keys like Ctrl-a,Shift-5,Alt-6 like this.
When i press that particular key,in OnkeyUp(0 fucntion i get ASCII for only ctrl,shift like 16,18 like that.
Take a look at GetKeyState API in MSDN --> http://msdn2.microsoft.com/en-us/library/ms646301(VS.85).aspx[^]
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http:\\nibuthomas.wordpress.com
|
|
|
|
|
Hi All,
In the dialog box, I can put a bitmap by importing the bitmap in the Resource View. However, as far as I know (and tried), it is limited to 256 color bitmap only. Is it possible to put higher color space bitmap such as 24-bit for picture in the dialog box?
Thank you
-Houari
|
|
|
|
|
You must be using an older Visual Studio
If I remember correctly, older versions didn't have an editor for
bit-depths > 8 but you could still add them to a resource script (RC file).
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
ah yes, i am using VS 6.0 ^^
and how can add them using resource script?
thanks...
-Houari
|
|
|
|
|
A typical BITMAP resource[^] in your app's .RC file looks something like
IDB_BITMAP1 BITMAP "res\\bitmap1.bmp"
where IDB_BITMAP1 is the identifier and the pathname of the bitmap file
is in quotes.
If you want VS to insert the code for you, you could add an 8-bit bitmap
in the editor then replace the created BMP file with your 24-bit bitmap.
Or edit the RC file by hand - it's a text file.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I'm writing an ISAPI Dll, but without the full MFC Overhead, i.e. I'm rolling my own! What should I include in stdafx.h to have access to the CString Object.
I am currently including windows.h, the ANSI Standard C Headers, and httpext.h. I know that <windows.h> will conflict with a lot of MFC Windows stuff, and it is easy to run into Linker trouble, if an inconsistent set of libraries is specified.
By the way, Happy New Year to All.
Bram van Kampen
|
|
|
|