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

Search:

Type: Posts; User: Mg85

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Delete tab

    by Mg85
    Replies
    10
    Views
    1,191

    Re: Delete tab

    Thank you so much!!!!! You are the boss!!!!
    Thank you
  2. Thread: Delete tab

    by Mg85
    Replies
    10
    Views
    1,191

    Re: Delete tab

    Yes, I know, but where can I tell to the program that only create one tab, and not two???
  3. Thread: Delete tab

    by Mg85
    Replies
    10
    Views
    1,191

    Re: Delete tab

    I dont think so, becouse it is only the name of the tab, and it is in other function.

    Thank you
  4. Thread: Delete tab

    by Mg85
    Replies
    10
    Views
    1,191

    Re: Delete tab

    But with some function of this file must create the tab, I think....

    In " AdestView.cpp" there is a function that call one function of this file:



    void CAdestView::OnUpdate(CView*...
  5. Thread: Delete tab

    by Mg85
    Replies
    10
    Views
    1,191

    Re: Delete tab

    Anyone know how to run this class?
  6. Thread: Delete tab

    by Mg85
    Replies
    10
    Views
    1,191

    Delete tab

    Hi,

    I hava an app that has two tab, "informes" and "variables", but I have to delete the informes tab becouse now it is not used. The code isn't me, and due to it, I don't know how to delete the...
  7. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    Thank you so much, finally, I used this code to save CString:

    int nLength = nombre_b.GetLength() + 1; // string lenght in characters
    int nBytes = nLength * sizeof(TCHAR); // buffer size...
  8. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    I dont now how to run serialize function. where I open the file? where I call the function?

    I have back to try with f.read and f.readString, I did an example to prove something, and I found that...
  9. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    I didnt understand you.

    I make a Struct with all the variable in the function PegarVariables(), and after I made a serialize function, like that



    if (ar.IsStoring())
    {
    // Pasamos los...
  10. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    Ok, them, I can use f.read to read int double and so on, and readString to read CString. Do you mean this?

    I tried to use it, but it didnt read well the CString.
  11. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    Thank you very much for answer, but them, I dont know how to get read this kind of date.
    Whant method shoud I use? should I change the kind of date, CString to char* or something like that?

    I...
  12. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    mm ok, but them, I must to use other method? or I use f.read to read int, double... and to read string, I use other method.
  13. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    Thank you everyone.

    I'm sorry for my english, and for take so time to answer.

    I tried to use CFile:Read and write, I have a problem here:


    f.Read(&nombre_b,sizeof(nombre_b));
    ...
  14. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    Yes, I know. But, for example, if I use CStdioFile with ReadString/writeString only get/set string and I read line by line, if I don't wrong, and I write several type of dates, int, double, CString.....
  15. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    Could I use the function Serialize instead of fread/fwrite??? If I can, how could I use this funcition??

    I dont understand this method.
  16. Replies
    36
    Views
    7,984

    Re: Problem with fread and fwrite

    I dont know, but I chek the value when it read, and the value is correct. The problem is at the end of function, the value is lost.
  17. Replies
    36
    Views
    7,984

    Problem with fread and fwrite

    Hi,


    I have two function to save/load information from/in a file.
    My problem is that every date is load good, but when it arrived at the end of function, and this date are necesary to call...
  18. Re: Show information in the same dialog after press diferent button

    Ok I will change GetDlgItem(IDC_EDIT1)-> by m_edit.

    What coordinates should I put so that the button is displayed on the bottom of the dialog?
  19. Re: Show information in the same dialog after press diferent button

    What mean "Well, but why do you still call GetDlgItem while you already have the control member variable m_Edit:"???

    You mean that I do this : m_Edit.>MoveWindow(5,5,cx-1,cy-1); ??

    I dont...
  20. Re: Show information in the same dialog after press diferent button

    Finally, I solved of this way:

    void CEjemplo::OnSize(UINT nType, int cx, int cy)
    {
    CDialogEx::OnSize(nType, cx, cy);

    if (GetDlgItem(IDC_EDIT1))
    ...
  21. Re: Show information in the same dialog after press diferent button

    ok, I'm sorry, I didn't understand you.

    Now I made this function:



    void CEjemplo::OnSize(UINT nType, int cx, int cy)
    {
    CDialogEx::OnSize(nType, cx, cy);
    OnSizeToClient();
  22. Re: Show information in the same dialog after press diferent button

    I made this function in my dialog,



    void CEjemplo::OnSizeToClient()
    {
    CRect myRect;
    GetClientRect(&myRect);

    ClientToScreen(myRect);
  23. Re: Show information in the same dialog after press diferent button

    Yes, I know this function, but I dont know how to use to maximize the edit control
  24. Replies
    1
    Views
    657

    Maximized Edit control

    I have a dialog with edit control, and I did:

    dlgDesc->ShowWindow(SW_MAXIMIZE);

    to show the dialog maximized, but only maximized the main frame and not the edit control.

    How can I maximize...
  25. Re: Show information in the same dialog after press diferent button

    Ok, finally, I got my answer.

    I solved of this way:

    I made a public variable of my dialog class, where is the edit control, in the class view, and I made the windows in the builder. After,...
Results 1 to 25 of 29
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured