Click here to Skip to main content
14,925,595 members

Comments by fd9750 (Top 10 by date)

fd9750 13-Nov-20 9:29am View
   
Hi,
I have tried innumerable variants on that but it never succeeded.
In the mean time I have found a way to do it with a python script.
fd9750 28-Nov-19 9:23am View
   
Yes, that would do the trick. I have done some testing and once InitializeComponent has executed the code actually ends up in the Form_VisibleChanged() function where I could add some code to correct any goofs caused by the designer.
It is a bit silly though to have to cure things like that. For the designer to be really functional it should support reassigning the Control.Collection it selected.
fd9750 18-Dec-12 12:42pm View
   
Hi Espen,
Thanks for the info. I'll check it out tomorrow.
fd9750 18-Dec-12 12:39pm View
   
Hi nv3,
I was beginning to suspect that was the case. In the mean time I have successfully used GetWindowRect to get the size.
Thanks for the info.
fd9750 18-Dec-12 10:55am View
   
Fair enough but why does the "LineTo" work then and what is the alternative ?

Oh yes, I have found out it only works once. if you trigger WM_PAINT for the dialog using Invalidate() or SendMessage(WM_PAINT) nothing happens any more except for erasing the drawing when using invalidate.

I am really new to this and I am getting more and more confused.
fd9750 18-Dec-12 10:25am View
   
the WM_PAINT for the dialog
fd9750 18-Dec-12 10:25am View
   
Deleted
the WM_PAINT for the dialog
fd9750 18-Dec-12 10:09am View
   
Too bad, I am calling "ShowGraph" from within the OnPaint() message handler which does get triggered by means of WM_PAINT. The "LineTo" works fine so that should be OK.
fd9750 18-Dec-12 10:06am View
   
Unfortunately I am calling "ShowGraph" from within the OnPaint() function which does get triggered by means of WM_PAINT.
fd9750 7-Dec-12 4:05am View
   
OK, I´ll keep it in mind.