|
-
Jan 23rd, 2002, 04:52 PM
#1
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.
-
Jan 23rd, 2002, 04:59 PM
#2
Well I found that 15 is WM_PAINT so it is painting and then whatever 20 is. Hmmm.
-
May 20th, 2003, 06:15 PM
#3
Addicted Member
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
-
May 21st, 2003, 02:52 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|