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

Search:

Type: Posts; User: Georgia

Page 1 of 4 1 2 3 4

Search: Search took 0.08 seconds.

  1. Replies
    2
    Views
    489

    get an seelected item in a CListCtrl

    Hello,

    I've a list control with 3 columns.

    OnItemdblclickMyList(NMHDR* pNMHDR, LRESULT* pResult)

    I like to get the selected item (db-clicked).
    How ist it possible?
  2. Replies
    1
    Views
    477

    get informations from a parent Dialog

    Hello,

    I have a main dialog. With a button click i open a child dialog.
    In the child dialog I need Informations from the parent dialog.
    I do follow but in the runtime I get the NULL pointer....
  3. Replies
    5
    Views
    546

    Re: insert List control items

    I've done the follow.
    But it doesn't works.

    int pos = m_List.InsertItem(0,"");
    m_List.SetItemText(pos, 0, "test");
  4. Replies
    5
    Views
    546

    insert List control items

    Hello,

    I've a list control with two colums.
    I like to insert rows in the list control.
    How is it possible?

    CListCtrl m_List;
    ...
    m_List.InsertColumn(0,"C1",LVCFMT_CENTER,150,20);...
  5. Replies
    6
    Views
    1,953

    Re: sort tree-control

    I think so.
    I insert items into a tree as follow:

    ...

    TV_INSERTSTRUCT TreeCtrlItem;

    TreeCtrlItem.hParent = hparent;
    TreeCtrlItem.hInsertAfter = TVI_LAST;
    TreeCtrlItem.item.mask =...
  6. Replies
    6
    Views
    1,953

    sort tree-control

    Hi,

    I viewing a tree control on start a application.
    The tree must be unsorted on start.
    Then the user cann sort the tree.
    I use the SortChildrenCB Method from a Tree Control.

    int CALLBACK...
  7. Replies
    5
    Views
    954

    expand all nodes from a tree control

    Hello,

    I've a tree control and I like to expand all tree nodes by a button click.
    I' ve the follow code:
    [ccode]
    ...obButtonClick()
    {
    openAllTreeNodes(m_TreeControl.GetRootItem());
    }
  8. Re: Please help! How to replace a string in a text file?

    Hello,

    I think its more then one solution possible.
    My Solution is to read a file and save the file content in a List (who contens CString's). Each line is a CString item.
    Then you can scan the...
  9. Replies
    5
    Views
    3,665

    Re: change text-color in a tree control

    The Problem is. I must have diffrent colors for any tree items. With SetTextColor I set the color in all tree items.
  10. Replies
    5
    Views
    3,665

    change text-color in a tree control

    Hello,

    i like to have different text colors in my tree control (CTreeCtrl).
    I'm start to work with a tree control now. Please make a little example. Helpfull answers will be rated.
  11. Replies
    4
    Views
    748

    Re: Handle as string

    In a constructor I create 2 handles. And I like to check in the destructor if this 2 handles are the same like in the constructor.
  12. Replies
    4
    Views
    748

    Handle as string

    Hallo all together,

    I like to give a handle (adress) as string (for checking).

    HANDLE myHandle;
    myHandle = CreateThread(...);
    //now I like to give myHandle as string in a file
  13. Replies
    0
    Views
    565

    COM-class constructor/destructor

    Hallo,

    Is it OK to use in a com-class a constructor / destructor. Whats whith AddRef and Release?
    How I can use AddRef and Release?

    My Problem is I use a costructor/destructor in my...
  14. Replies
    1
    Views
    564

    Re: EditField/CFileDialog

    I've solve this problem.
  15. Replies
    1
    Views
    564

    EditField/CFileDialog

    Hello,

    I've an EditField and a CFileDialog. With a dialog I choose a file and I will display the filename in the EditField. I don't know how I can do this. Please help.
  16. Replies
    2
    Views
    581

    filtering with CFileDialog

    Hello,

    I've the following code:
    I will filter by *.log-Files but in the file-dialog I can't see any *.log file. But the files existist.

    CFileDialog...
  17. Replies
    1
    Views
    672

    Re: 3-dimensional array

    Hello!

    You should write:

    char **szTest[] = { szPerMo, szPerTu };



    I hope it helps.
    Bye.
  18. Thread: XML

    by Georgia
    Replies
    2
    Views
    599

    Re: XML

    Hello,

    we used the dom.Its very slowly for large xml-documents. The sax is faster for large xml-documents.

    bye
  19. Replies
    2
    Views
    1,117

    Re: COnvert BSTR to CString

    BSTR bstrVal;
    CString cstrVal;
    string strVal;

    VARIANT* varVal;
    varVal->bstrVal = bstrVal;
    ...

    string _B2S(VARIANT* varBStr)
    // convert BSTR to string
  20. Replies
    4
    Views
    1,381

    Re: filetime systemtime and duration

    Thanks a lot.

    If you know another class as the CTimeSpan it would be helpfully. Because I can't use MFC. Exist a WIN API function?
  21. Replies
    4
    Views
    1,381

    filetime systemtime and duration

    Hello,

    I need the day-duration from a file. How long exists the file in days. I get the filetime I can convert it into a systemtime. But I need the duration in days. I don't like to calculate it...
  22. Replies
    2
    Views
    531

    Re: simple question

    SYSTEMTIME mySTime,mylTime;

    GetSystemTime(&mySTime);//UTC-Time
    GetLocalTime(&mylTime);//local time from your pc

    mySTime.wDay;
    ...
  23. Replies
    3
    Views
    804

    Re: Directory Access Permissions

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred_5ysz.asp
  24. Replies
    5
    Views
    2,028

    Re: How to convert string to CString

    string str1;
    CString cstr2;
    ...
    cstr2 = str1.c_str();
    //or
    str1 = cstr2.format...
  25. Replies
    1
    Views
    548

    Create an Event in a thread-function

    Hello all togethrer,

    in my application I need to save data in a file in a time period.
    I solved this problem so:
    In the constructor from my class I create a thread who have a thread function....
Results 1 to 25 of 81
Page 1 of 4 1 2 3 4





Click Here to Expand Forum to Full Width

Featured