|
Hello,
I found a contribution in this web site about multilanguage applications for Windows NT and Windows 2000 under the title Multilanguage Application - Change Application Language by Daniel Zuppinger under MFC/STL path.
My question is how I could proceed for Windows 95/98?
I like to know how a second or third language is added in the string table or how a second or third language is added to the dialog forms. The tutorials and text books don't cover this topic.
How can the language be chosen or set at compile time and/or at run time ?
Thanks for any help.
|
|
|
|
|
Hi,
I need to sort data in List Ctrl (report view) when user clicks on any of the column headers. Ascending and descending on alternate clicks.
Plz help.
|
|
|
|
|
Hi, try to look throw this functions
void CMListCtrl::DoSort()
{
SortItems((PFNLVCOMPARE)MySort,(LPARAM)this);
}
BEGIN_MESSAGE_MAP(CMListCtrl, CListCtrl)
ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, OnColumnclick)
END_MESSAGE_MAP()
void CMListCtrl::OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult)
{
NMLISTVIEW* pNMListView = (NMLISTVIEW*)pNMHDR;
int iColumn = pNMListView->iSubItem + 1;
int iColumnLast = m_iSortedCol;
if (iColumn == abs(iColumnLast))
{
iColumn = -iColumnLast;
}
m_iSortedCol = iColumn;
DoSort();
}
/*
The comparison function must return a negative value
if the first item should precede the second, a positive
value if the first item should follow the second, or
zero if the two items are equivalent.*/
static int CALLBACK CMListCtrl::MySort(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort)
{
CMListCtrl* _this = (CMListCtrl*)lParamSort;
CFileItem* pFIOne = (CFileItem *)lParam1; // was added using Insert
CFileItem* pFITwo = (CFileItem *)lParam2; // was added using Insert
return 0;
}
|
|
|
|
|
How do I create a list box on my main window using MFC? I know how to do it for a DialogBox, but can't figure out how to do it on the main window.
|
|
|
|
|
Derive your view from CFormView and then you can make your view any combination of dialog items.
OF course if you want to keep your view as it is but only add the one item, then you'll need to create a frameless dialog to simulate an item in the view itself.
|
|
|
|
|
helo all,
i have a small question. i am developing a commercial app using directx and internet explorer component. We have been thru the EULA of both (which seems to be in latin).
The question is that "is it legal to distribute downloaded copies of directx and IE installables ?". Both, as is well known are freely avialable for download.
please mail me ur replies off-line !
Mayuresh Kadu
mskadu@hotmail.com
|
|
|
|
|
Hi,
I have a dialog with an RTF formatted text.
Right now it only supports English. How do I detect a diffetent character set, and set it accordingly?
I also may have to swtich right-left reading if it's a right to left oriented language, how do I switch in the directions back and forth?
I have read some of the RTF documentation, but couldn't get the whole thing to work right.
Thank you,
|
|
|
|
|
Anybody!! Help me. I need algorhtim to use anti-aliasing drawing for simple figure.
|
|
|
|
|
i wish to get the contents of a ComboBox list from within another program.
ive got the dialog id string but everytime i try and get any data from the dialog my application crashes with Cannot read memory..
can anybody help me Please!!!!!!.
|
|
|
|
|
Hi All,
I can find a few tools for doing this in JAVA
But nothing for doing it in C++
AnyOne know of any viable tools ?
Regardz
Colin Davies
|
|
|
|
|
Declaration : I am a beginner. (like C, always declare first )
Alright, straight to the point. I created a new MFC project,
dialog base. I have a main dialog with a button, which
will call the second dialog with a timer (clock).
Normally when I have single dialog, I start the timer by initializing it in OnInitDialog(). Now I have the time
in second dialog, where should i initialize it?
In which function? Or what should I do?
Any opinion is extremely welcome. Thanks.
|
|
|
|
|
You want a timer to initialise when the button is pushed to wait for the dialog, or when the dialog comes up to do something else ? If the former, start the timer when the button is pushed, if the latter, in OnInitDialog of dialog 2.
|
|
|
|
|
I would like the timer to start when the button on the
first dialog is pushed. So when the second dialog pop up
it has a running clock.....
|
|
|
|
|
Declaration : I am a beginner. (like C, always declare first )
Alright, straight to the point. I created a new MFC project,
dialog base. I have a main dialog with a button, which
will call the second dialog with a timer (clock).
Normally when I have single dialog, I start the timer by initializing it in OnInitDialog(). Now I have the time
in second dialog, where should i initialize it?
In which function? Or what should I do?
Any opinion is extremely welcome. Thanks.
|
|
|
|
|
Anybody know how to write modules to Flight Simulator 2000????
If you know please contact with me on this email:
piopawlu@interia.pl
|
|
|
|
|
|
Is it possible to have a timer in the background of a console-based program? Maybe an API function that takes a pointer to a function in my program?
I would be very happy if it could even operate in the background of a prompt for text input.
The reason for this question, is that I am developing a text-based adventure game (Yes, it IS true), and I want it to be real-time.
Thanks in Advance.
Ulf
|
|
|
|
|
You can't use the Windows WM_TIMER message without a window. (this includes the callback function variation, which simply translates the window message to a callback).
There are several solutions to this.
1) Create a hidden window to recieve the messages
2) Use the Sleep() function to sleep for the amount of time that you would want to use a timer for. This has the drawback of blocking until the time is up.
3) Use a multimedia timer.
|
|
|
|
|
What I have to do to retrieve the text of a DOS program while it runs and show the text in a TextBox Control for example? In other words, how I can monitor the output of a DOS program? Thanx.
|
|
|
|
|
when I include the afxpriv.h file (doesn't matter which file its included in)
I get the following messages after compiling:
..\include\afxpriv.h(640) : error C2259: 'CDockBar' : cannot instantiate abstract class due to following members:
..\include\afxpriv.h(565) : see declaration of 'CDockBar'
..\include\afxpriv.h(640) : warning C4259: 'void __thiscall CControlBar::OnUpdateCmdUI(class CFrameWnd *,int)' : pure virtual function was not defined
..\include\afxext.h(165) : see declaration of 'OnUpdateCmdUI'
The reason I want to include this file is to use the CControlBar.
How do i include this file without getting these error ??
Thanks
|
|
|
|
|
Why do you think you need to include that file to use CControlBars? I have never needed to included it.
What exactly are you up to?
Roger C.
|
|
|
|
|
Oh... I see, it's used in the CtrlBars sample. I'm not clear as to the error messages... I'll take another look.
|
|
|
|
|
afxpriv.h is not intended to be used by user programs, but it's there as an "If you insist, but we don't support this" kind of thing.
Generally this code means that OnUpdateCmdUI is a pure virtual function which cannot be sued by itself, you must inherit from it and specify your own OnUpdateCmdUI function.
|
|
|
|
|
CControlBar is an abstract class. I am trying to understand what you are doing and I get the feeling you are tying to create a CControlBar object.
|
|
|
|
|
Roger and Erik above are right. CControlBar is an abstract class (has abstract member functions) and you can't instantiate an object from it. You should derive your own class from CControlBar (say CMyBar) and provide your implementation of the virtual function.
You can define OnUpdateCmdUI() as a do-nothing function in your class.
Take a look at my code here: http://www.codeproject.com/docking/sizecbar.asp
If you are patient, you will see that CSizingControlBar is derived directly from CControlBar, and it provides its own OnUpdateCmdUI().
|
|
|
|