I have a class (derived from CDialog) that displays a dialog and processes the input. Now I need another dialog that has many similar properties to the one described above and should be opened instead, based on some criteria. I would like to handle both of these dialog boxes through the same...
Hi All,
A little background about the problem - My MFC Dialog based app uses a ListBox as a reservoir of data. I write my incoming transactions to this ListBox and if the user so wishes, I retrieve data from the selected entries (for variety of purposes - saving to file, copy to Clipboard etc)...
Thanx for the reply minhhoa.
My problem relates more to the fact that CString will not work correctly with binary data (it will terminate at the first available NULL). Because of that, I am unable to use it with data obtained from binary files (like PDFs, DOCs etc). I like CStrings because of...
Hi all,
in my current work so far I have been using CStrings extensively, but now I am told that my data is not restricted to strings and can be any kind of "byte". Does anyone know of a class or has example that works similar to CString (in terms of functions etc) but works on...
This may probably be too trivial but I can not think anymore and I am completely stuck. This is the problem -
I am receiving a string (5 digits long) from another computer (over a socket), and I need to convert it to an integer like this -
In String- "00275"
Understand it as...
Normally you would do something like this...
// Get the data of the selected item
I = m_List1.GetCurSel();
where m_List1 is the List box....
then -
// Get the string in a CString object
nTextLen = m_List1.GetTextLen( I );
m_List1.GetText( I, data.GetBuffer(nTextLen) );
Now you have the...
Hello everyone,
Has anyone ever used the class CSharedFile. I was trying to implement the clipboard copy functionality (as I found in one MSDN article) that uses CSharedFile. My problem is that the compiler keeps giving me the "error C2065: 'CSharedFile' : undeclared identifier" error...
Taken directly from MSDN -
============================================================
Ask Dr. GUI #43
November/December 1998
List Box, Draw Thyself
Dear Dr. GUI,
Please forgive me if I am suffering from amnesia and have already bugged you about this.... I remember I was going to...
Hi All,
I have a dialog based app consisting of a List box. I want to change the color of the entries that I add to the list box. Is it possible? How?
Thanks a lot
Azad
Hi All,
I am new C++ programmer so please bear with me if I ask a basic (or stupid) question.
I have written a dialogue based application in MSVC++, and it has, among oter things, a List Box. Everything else works OK, but when I add an entry to list box that is wider than the List box...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.