Results 1 to 4 of 4

Thread: C++ Equivaliant of a FlexGrid

  1. #1

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    C++ Equivaliant of a FlexGrid

    Does C++ have a control like VB's FlexGrid? If so can someone post the Const for the 'Events' of it or the header file.

    In VB I am trying to capture when TextMatrix is used or AddLine and I hooked it and found that it receives 2 Messages 15 and 20 and 1 of them has a wParam but I can't figure out what the info is supposed to be. So I was thinking if I could look in the header file maybe I could see something that helps. I hope this makes sense (probably not). I have C++ but at home not at work where I am.

  2. #2

    Thread Starter
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Well I found that 15 is WM_PAINT so it is painting and then whatever 20 is. Hmmm.

  3. #3
    Addicted Member Abilio's Avatar
    Join Date
    May 2003
    Location
    Aveiro - Portugal
    Posts
    222

    Post VB FlexGrid

    About your answer:
    WM_PAINT = 15
    in this message you have wParam = 0 and lParam = 0

    WM_ERASEBKGND = 20

    in this message you have wParam = FlexGrid HDC and lParam = 0

    you get 2 messages together because windows paint with 2 steps:
    1º - Send 20 (erasebackground) with wParam = HDC
    2º - Send 15 (Paint) with no more information

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    C++ does not "have" controls. C++ itself has no graphical capabilities at all, and actually not even any other I/O.
    Basic I/O is provided through the standard library.
    Graphical abilites are provided through special APIs.

    Anyway, you can access the FlexGrid control through C++, but it is rather tedious.

    You cannot really hook into it anyway. The two messages just mean that the control is redrawing itself.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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