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

Search:

Type: Posts; User: mesajflaviu

Page 1 of 12 1 2 3 4

Search: Search took 0.16 seconds.

  1. Replies
    3
    Views
    165

    Re: CStringList on heap

    Ok, thank you. The same is the case with CArray / CMap ?
  2. Replies
    3
    Views
    165

    CStringList on heap

    If I have a class member as CStringList with a lot of elements, is worth it to create it on heap (with new), or is enough to create it on stack ?
  3. Replies
    6
    Views
    576

    Re: Reading HDD sectors

    I have solved this step, but now there is more things to solve: for instance, how can I know the number of Sectors in exFAT ? The goal is to read deleted files from an exFAT drive ... should I create...
  4. Replies
    6
    Views
    576

    Re: Reading HDD sectors

    Yes, I can read some of the needed info with DeviceIoControl, but in this way I should modify almost all code, and there is no time for that.

    I reproduced even more the original code:


    struct...
  5. Replies
    6
    Views
    576

    Re: Reading HDD sectors

    Thank you 2kaud, I have found the information that I need it ... now I have to go forward to see how can I read the deleted files from HDD ...

    In my searches, I have found an interesting article...
  6. Replies
    6
    Views
    576

    Reading HDD sectors

    I am trying to read deleted files from HDD, and for starting I have tried to read sectors from HDD with following code:



    HANDLE hVolume = CreateFile(sVolume, GENERIC_READ, FILE_SHARE_READ |...
  7. Replies
    13
    Views
    809

    Re: Sending WM_KEYDOWN from OnKeyDown

    I am trying to say that sending WM_KEYDOWN with all information packed to WPARAM and LPARAM will be the shortest way instead to create a custom user message ...
  8. Replies
    13
    Views
    809

    Re: Sending WM_KEYDOWN from OnKeyDown

    Yes, agree, but in this WM_USER message I should send the same OnKeyDown parameters … (I corrected the first post, where I wrote OnKeyUp/WM_KEYDOWN).
  9. Replies
    8
    Views
    494

    Re: CMFCToolTipCtrl in CView

    You are right, I think I can use CMFCToolTipCtrl with AddTool/SetToolRect methods ...

    Thank you.
  10. Replies
    13
    Views
    809

    Re: Sending WM_KEYDOWN from OnKeyDown

    Or there is another simple way to send this message, WM_KEYDOWN to parent ?
  11. Replies
    13
    Views
    809

    Re: Sending WM_KEYDOWN from OnKeyDown

    Inside CMyCtrl I handle some keyboard keys, and there is some situations where app that own this CMyCtrl have to react to some keyboard keys ... but this depend by app, and in this case the only...
  12. Replies
    13
    Views
    809

    Re: Sending WM_KEYDOWN from OnKeyDown

    If some option would be enabled, CMyCtrl would be send on CMyView, something like that:


    void CMyCtrl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
    {
    // TODO: Add your message handler code...
  13. Replies
    13
    Views
    809

    Convert OnKeyDown to WM_KEYDOWN

    How can I translate OnKeyDown to WM_KEYDOWN ? I mean, where can I put nRepCount inside lParam ?


    void CMyCtrl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
    {
    // TODO: Add your message...
  14. Replies
    8
    Views
    494

    Re: CMFCToolTipCtrl in CView

    Yes, but that rectangles are changing dynamically, so I guess this is the long road to achieve the task ... I have in CMyCtrl a HitTest(CPoint pt) method which return me an item ID ... I guess...
  15. Replies
    8
    Views
    494

    Re: CMFCToolTipCtrl in CView

    Ok, I'll try.
  16. Replies
    8
    Views
    494

    Re: CMFCToolTipCtrl in CView

    Hi Victor, and thank you for your post. There is a small problem regarding this example, this one is showing the tooltip for a rectangle who is already setup during creation, and in my case the...
  17. Replies
    8
    Views
    494

    CMFCToolTipCtrl in CView

    Hi everyone. Would you give me a solution to a following issue: on an MDI app, with CView as CMyView, and here a spread a self developed control, derived from CWnd. This control draw some rectangles....
  18. Replies
    11
    Views
    579

    Re: EnableMenuItem problem

    If you want to enable / disable that menu item programmatically then you only made a condition inside your UpdateMenu handler ... something like this:


    void CAppDoc::OnUpdateShowResults(CCmdUI*...
  19. Replies
    11
    Views
    579

    Re: EnableMenuItem problem

    Try to enable/disable those menu item trough message map, just like this:


    BEGIN_MESSAGE_MAP(CYourView, CListView)
    ON_UPDATE_COMMAND_UI(ID_MENUID, OnUpdateItem)
    END_MESSAGE_MAP()
  20. Replies
    6
    Views
    4,922

    Re: Display image.jpg in MFC

    You can load any kind of image file, including png file using CImage to load image file into CBitmap object:


    CImage image;
    CBitmap Bitmap;
    CString sFileName = _T("C:\\Test\\Image.png");...
  21. Replies
    4
    Views
    447

    Re: Loading and restoring MDI groups

    If I would handle the saving and restoring of opened documents on my own, how can I open a new document/view in a specific tab group ?

    Later edit: I guess is not a good idea, I should not...
  22. Replies
    4
    Views
    447

    Re: Loading and restoring MDI groups

    Yes, I noticed that views must be saved in order to be saved, but I don't know why this is not happen every run test ... and how can I save/restore views that, as you said, haven't been saved ? Let...
  23. Replies
    4
    Views
    447

    Loading and restoring MDI groups

    I have an example of MDI app, where I tried to save and then restore a MDI tab group. And the example id from microsoft: RibbonMDIDemo ... but simply not working:


    CCommandLineInfo cmdInfo;...
  24. Re: Change programmatically IHTMLInputFileElement file

    Very good idea. I have tried and it worked. Thank you Arjay !
  25. Re: Change programmatically IHTMLInputFileElement file

    I succeeded into put a text there, I attached the sample project.35437

    Go to Edit menu, and choose "Insert" item. You will see a file path on browse html control. But if I click "Send", the server...
Results 1 to 25 of 296
Page 1 of 12 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)