CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    388

    How are two controls CONTGOUS?

    The On_Control_Range directive demand contigous controls. (if mention the first control and the end control which are contigous). The question what makes two or more controls contigous. Is it to do with resourse symbols? Please help!


  2. #2
    Join Date
    May 1999
    Location
    CA, USA
    Posts
    586

    Re: How are two controls CONTGOUS?

    Yes - their resource values must have a difference no greater than 1. In other words, in resource.h...

    IDC_EDIT1 1000
    IDC_EDIT2 1001
    IDC_EDIT3 1002
    IDC_EDIT4 1003
    IDC_EDIT5 1005
    IDC_EDIT6 1006

    IDC_EDIT1, IDC_EDIT2, IDC_EDIT3 and IDC_EDIT4 are contiguous - with each other and IDC_EDIT5 and IDC_EDIT6 are contiguous with each other, but they aren't all contiguous because there is a difference of more than 1 between IDC_EDIT4 and IDC_EDIT5.

    Rail

    Recording Engineer/Software Developer
    Rail Jon Rogut Software
    [email protected]
    http://home.earthlink.net/~railro/

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