Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: retry

Page 1 of 30 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    1
    Views
    542

    XP Button in Visual C++ 2005

    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...
  2. Replies
    2
    Views
    594

    How to get CFont from CDC?

    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...
  3. Replies
    7
    Views
    955

    Re: #include and ofstream

    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",...
  4. Replies
    7
    Views
    955

    Re: #include and ofstream

    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'...
  5. Replies
    7
    Views
    955

    #include and ofstream

    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...
  6. Replies
    2
    Views
    411

    Re: edit box does not have scrollbars?

    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...
  7. Replies
    2
    Views
    411

    edit box does not have scrollbars?

    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, ...
  8. Re: How to easily remove one of the splitter window - URGENT

    Works Great JohnCz, Thanks!
  9. Re: How to easily remove one of the splitter window - URGENT

    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)...
  10. Re: How to easily remove one of the splitter window - URGENT

    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...
  11. Re: How to easily remove one of the splitter window - URGENT

    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...
  12. How to easily remove one of the splitter window - URGENT

    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...
  13. Passing the underlying structure for a union parameter, good?

    struct StructA
    {
    int my_int;
    char my_name[20];
    };
    struct StructB
    {
    float my_float;
    };
  14. Replies
    4
    Views
    521

    Re: starting an executable from my program

    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...
  15. Replies
    4
    Views
    521

    starting an executable from my program

    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...
  16. Replies
    1
    Views
    482

    2nd progress control woudn't change color

    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...
  17. Replies
    3
    Views
    659

    Re: How to merge Excel cells?

    Anyone?
  18. Replies
    3
    Views
    659

    Re: How to merge Excel cells?

    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...
  19. Replies
    3
    Views
    659

    How to merge Excel cells?

    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...
  20. Replies
    1
    Views
    471

    HANDLE of another application.

    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...
  21. Replies
    3
    Views
    1,350

    using a constant in printf formatting

    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...
  22. Replies
    0
    Views
    390

    printing on the edge

    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...
  23. Replies
    6
    Views
    581

    Re: DrawText() does not draw

    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...
  24. Replies
    6
    Views
    581

    DrawText() does not draw

    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()...
  25. Replies
    5
    Views
    653

    STL size, capacity, constructor

    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();
Results 1 to 25 of 731
Page 1 of 30 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center