CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Nov 2011
    Location
    India
    Posts
    333

    Slider With Edit & Spin Control - Hanging Problem When Scroll the Slider & Spin

    Hi,

    I'm using Slider control , Edit box & Spin control. For find the jpg attachment for reference.

    I like to display float value in the edit control , Spin control used to change the values in the range of 0.1.

    In my application i'm using mscomm control for serial communication.

    i send the Edit box value (0.0 to 160.0) to serial port application.

    So Hanging problem occurred when i scroll the Slider control & change the edit box value using spin control.

    I was used the below event handler,

    OnNMCustomdrawSlider1(NMHDR *pNMHDR, LRESULT *pResult);
    OnNMReleasedcaptureSlider1(NMHDR *pNMHDR, LRESULT *pResult);
    OnNMCustomdrawSlider2(NMHDR *pNMHDR, LRESULT *pResult);
    OnNMReleasedcaptureSlider2(NMHDR *pNMHDR, LRESULT *pResult);

    OnNMReleasedcaptureSpin1(NMHDR *pNMHDR, LRESULT *pResult);
    OnDeltaposSpin2(NMHDR *pNMHDR, LRESULT *pResult);
    OnNMReleasedcaptureSpin2(NMHDR *pNMHDR, LRESULT *pResult);
    OnDeltaposSpin1(NMHDR *pNMHDR, LRESULT *pResult);

    Kindly find the attachment.

    Pls clear me.
    Attached Images Attached Images  
    Attached Files Attached Files
    Regards,

    SaraswathiSrinath

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured