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

Search:

Type: Posts; User: mesajflaviu

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    633

    Re: Coloring thumbs on CScrollBar

    OK, thank you ... at least I know where to go.
  2. Replies
    6
    Views
    633

    Re: Coloring thumbs on CScrollBar

    Kindly thank you Mike ... and how should I get/set thumbs color of CScrollbar ? As I said before, I don't think that redrawing whole control could be a solution ...
  3. Replies
    6
    Views
    633

    Re: Coloring thumbs on CScrollBar

    I have tried to handle ON_WM_DRAWITEM():


    void CScrollBarExt::OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct)
    {
    // TODO: Add your message handler code here and/or call default
    ...
  4. Replies
    6
    Views
    633

    Coloring thumbs on CScrollBar

    I am trying to coloring thumbs on CScrollBar control ... in order to achieve that, I derived a class from CScrollBar, named CScrollbarExt, and I handled CtlColor:


    protected:...
  5. Replies
    22
    Views
    25,309

    Re: CString class in non-MFC static library

    "MFC has been around for 20 years or so, and is very reliable".
    Totally agree !
  6. Replies
    1
    Views
    227

    Re: gluDisk problem

    There is to less information about your issue to know what happened there, and might be wrong forum [http://forums.codeguru.com/forumdisplay.php?60-Graphics-Programming] ... please provide more info...
  7. Replies
    5
    Views
    553

    Re: File extension setup on CFileDialog

    I have found a workaround, I typed here, in case that everyone need it:


    void CFileDialogExt::OnTypeChange()
    {
    // TODO: Add your specialized code here and/or call the base class

    CString...
  8. Replies
    5
    Views
    553

    Re: File extension setup on CFileDialog

    I searched on VS2008 source code, and here is what I have founded:


    STDMETHODIMP CFileDialog::XFileDialogEvents::OnTypeChange(IFileDialog *)
    {
    METHOD_PROLOGUE(CFileDialog, FileDialogEvents)...
  9. Replies
    5
    Views
    553

    Re: File extension setup on CFileDialog

    I do that, the same behavior ... :(
    33907
  10. Replies
    5
    Views
    553

    File extension setup on CFileDialog

    My intention is to setup an scecific file extension on CFileDialog ... For that, I derived a class from CFileDialog, named CFileDialogExt. I have 5 different file types, like this:


    LPTSTR...
  11. Replies
    5
    Views
    557

    Re: Saving view

    Sorry for later response ... I have wrote the same code, except one line:


    Image.Attach((HBITMAP)pBitmap->m_hObject);

    instead of


    image.Attach((HBITMAP)pBitmap->GetSafeHandle());
  12. Replies
    5
    Views
    557

    Saving view

    I have an application that compound more CBitmaps into single one, and all of them I spread it into CScrollView. How can I save entire view (helped by CImage), but not just visible part in window...
  13. Replies
    13
    Views
    990

    Re: SetCursorPos slowness

    Kindly thank you ... I'll pay attention on this, right now I have only one monitor, but who knows in future ?
  14. Replies
    13
    Views
    990

    Re: SetCursorPos slowness

    No ... are you referring GetSystemMetrics(SM_CXFULLSCREEN) ?
  15. Replies
    13
    Views
    990

    Re: SetCursorPos slowness

    I finally made it ... I put code here, in case that someone need it:


    void CTestMouseView::ReleaseClipCursor()
    {
    CRect rect;
    int nScreenWidth = GetSystemMetrics(SM_CXFULLSCREEN);...
  16. Replies
    13
    Views
    990

    Re: SetCursorPos slowness

    To render medical images (DICOM files), in fact MultiPlanarReconstruction. Theoretic, VTK has graphic objects that behave like what I am trying to do, but is not working correct when vtk window has...
  17. Replies
    13
    Views
    990

    Re: SetCursorPos slowness

    Note that I need to keep the mouse track inside of client area, AND it should be moved ONLY on horizontal direction ... but you gave me an idea: to create a ClipCursor rectangle wide as client area,...
  18. Replies
    13
    Views
    990

    Re: SetCursorPos slowness

    I already tried that, doesn't working ...
  19. Replies
    13
    Views
    990

    Re: SetCursorPos slowness

    Though in real application I will not use this code inside of OnMouseMove (over CView I am spread up a VTK window), there is a very good point ! Thank you. Now, I have to think about some_condition...
  20. Replies
    13
    Views
    990

    SetCursorPos slowness

    In a SDI app, I constraint the mouse to move only an horizontal direction, if "Shift" key is pressed ... here is the code:


    void CTestMouseView::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags) ...
  21. Replies
    43
    Views
    3,879

    Re: Emptying CString

    This problem occurred on VC6 ... I am still using VC6 ... I know, this is not good thing, but the project is pretty big and I am thinking that is lot of work to migrate the project on newer versions...
  22. Replies
    43
    Views
    3,879

    Re: Emptying CString

    Sorry for later response ... here is the entire code that gave me problems:


    CLSID clsid;
    HKEY hKey(NULL), hKeyC(NULL);
    ULONG cSize = 255;
    LPOLESTR pwszClsid;
    CString sPath, sVersion,...
  23. Replies
    43
    Views
    3,879

    Re: Emptying CString

    Here is the complete situation: I have an MDI app. Also, I have a class, CMyDB, derived from CObject. Inside of this class, I have a CString member variable:


    CMyDB : public CObject
    {
    ......
  24. Replies
    43
    Views
    3,879

    Re: Emptying CString

    "What version of VC are you using?
    What actions with this CString instance do you perform? "

    I am using VC6 as Visual Studio ... and with that CString I just want to use it to keep error...
  25. Replies
    43
    Views
    3,879

    Re: Emptying CString

    After all, I really found the problem: instead of


    // Get the Version information
    lRet = RegQueryValueEx(hKeyC, NULL, NULL, NULL, (BYTE*)(LPCTSTR)sVersion, &cSize);

    I wrote:


    // Get...
Results 1 to 25 of 121
Page 1 of 5 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center