Search:
Type: Posts; User: retry
Search:
Search took 0.25 seconds.
-
August 22nd, 2006, 02:28 PM
I create a test application in Visual C++ 2005 and buttons on dialogs are automatically XP style.
When I convert an existing VC6 application to VC2005, the buttons are still old style.
What do...
-
August 3rd, 2006, 09:24 AM
Is the only way is to create dummy font and use SelectObject to get the device context font?
CFont *pFont = pDC->SelectObject(&dummyFont);
This does change the selected font of CDC which is...
-
July 11th, 2006, 10:06 AM
Thanks that is resloved. A follow up question though on different topic.
I want to to initialize a vector, is that possible?
something like:
vector <string> names (10) = {"Mark", "Dave",...
-
July 11th, 2006, 09:02 AM
Yes, I do "using namespace std;"
I didn't get how do I correct the problem? I commented #include "fstream.h" but it results in even more errors:
first in the list is:
error C2079: 'fout'...
-
July 11th, 2006, 08:47 AM
I have an ofstream object for file output which works great.
ofstream fout;
fout.open(sFileNAme, ios::out);
.....
Now I added #include <vector> obviously to use vector and the moment I...
-
June 24th, 2006, 01:02 PM
I tried this but it didn't work properly. (The CScrollEdit class).
It shows disabled scroll bars first but when I edit, it removes the scroll.
I am in fact using this in a floating windowfrom...
-
June 24th, 2006, 11:44 AM
I am creating an edit box with the following code:
if (!m_Edit.Create(ES_MULTILINE | WS_CHILD | WS_VISIBLE | WS_TABSTOP | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_WANTRETURN,// | ES_READONLY, ...
-
June 23rd, 2006, 10:24 AM
Works Great JohnCz, Thanks!
-
June 22nd, 2006, 01:08 PM
Thanks it works now, I forgot to add to GetRightPane():
if(!m_wndSplitter.IsWindowVisible())
{
return NULL;
}
When only the listview is shown, the styles (report, icon, list etc)...
-
June 22nd, 2006, 12:57 AM
Thanks JohnCz, that is awesome! Wish there was that small close button in right corner of the tree view to close it from there and I would keep it as an option!
I am trying to put the code in the...
-
June 21st, 2006, 03:48 PM
Can you tell me if the work needed is in which functions?
I have used the MFC Application wizard to created Explorer like application which already gives two views. I just want to remove the...
-
June 21st, 2006, 03:17 PM
Hi,
I have an MDI application with two splitter windows in my view. One is TreeView, second is ListView
I want to remove the TreeView for now and want it to act as if it has one view the...
-
June 20th, 2006, 11:32 AM
struct StructA
{
int my_int;
char my_name[20];
};
struct StructB
{
float my_float;
};
-
June 10th, 2006, 11:02 PM
strPath was already filled with the correct path and executable. This issue is fixed.
I want to debug the 2nd executable now when it is called from my first program. Since its not a dll so I can...
-
June 10th, 2006, 03:38 PM
HINSTANCE hInstance = ShellExecute(GetSafeHwnd(),_T("open"),_T(strPath),_T(""),NULL,SW_SHOW);\
This executable pointed by strPath runs in dos prompt and when it is run independently its prompts a...
-
I am using two CTextProgressCtrl on a dialog page and it shows only the default colors.
Both are idential but I can change the color of one progress but can not do the same to the 2nd. The code...
-
-
There has to be something simpler! Range does have a Merge() function but I don't know what kind of parameter it receives. Its always dificult to get help with these functions.
here in the...
-
range = sheet.GetRange(COleVariant("A1"),COleVariant("B1"));
range.SetValue(COleVariant("Hello"));
The above code prints "Hello"two times each in cell A1 and B1. I want both the cells to be...
-
April 24th, 2006, 12:51 PM
I want to get the handle of another application which is an MFC MDI.
I am using ::FindWindow(NULL, "Title"); which works but as you know in MDI the title changes when a new file is loaded.
I...
-
April 13th, 2006, 12:50 PM
Instead of printf("%.2", float_value);
I would like to define 2 as constant.
#define PRECISION 2
and than use PRICISION instead of 2 in the printf. The reason for this that I can easily...
-
April 12th, 2006, 08:56 AM
CString myString = "Hello";
pDC->DrawText(myString, rect, DT_SINGLELINE | DT_RIGHT);
I am using the above line to print something right aligned. It does the job correctly but if I changed the...
-
April 11th, 2006, 12:34 PM
The points go to g_gili, NormalizeRect() rect fixes the problem.
Sometimes these things are now documented in MSDN that the rect should be normalized before calling DrawText()...can anybody shine...
-
April 11th, 2006, 11:05 AM
If i do pDC->Rectangle(rc); it draws the rectangle correctly where I want to draw the text.
I want to draw text inside this rectangle, it does not draw text (with or without caling Rectangle()...
-
April 10th, 2006, 09:50 AM
vector <int> v1 (20);
vector <int> v2;
v2.reserve(20);
Later in the code when I do:
int c1 = v1.capacity();
int c2 = v2.capacity();
|
Click Here to Expand Forum to Full Width
|