|
MKUser wrote: Is there any time controller provided by MFC which display day,hour,minutes and seconds in following way
day:hour:minute:second
I think you have to write your own control to show time like this.
MKUser wrote: how to create any button in triangular shape
SetWindowRgn may help you.
|
|
|
|
|
Hi
iam doing Chat application with out language pack installation .In this when i paste chinese characters in rtf .
And sending from rtf to Html chinese characters r not displayed correctly in html they r displaying differently ..how can i solve this problem plz tell...
#sanroop#
|
|
|
|
|
Language pack should be installed..
try changing the encoding scheme
Internet Explorer -> View -> Encoding -> Unicode(UTF-8)
|
|
|
|
|
Hi
iam doing Chat application with out language pack installation .In this when i paste chinese characters in rtf .
And sending from rtf to Html chinese characters r not displayed correctly in html they r displaying differently ..how can i solve this problem plz tell...
#sanroop#
|
|
|
|
|
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
|
|
|
|