Author |
Topic: Close icon problem (Read 389 times) |
|
mavison
New Member
member is offline


Posts: 14
|
 |
Re: Close icon problem
« Reply #13 on: Mar 17th, 2010, 10:23pm » |
|
I just wanted to understand what was changing !dlg%, why and when, as it was a variable used in my code. My 40 years in computing have taught me never to make assumptions!
And the Windows API is totally new to me, so I admit some desire to understand it better.
Martin
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: Close icon problem
« Reply #14 on: Mar 18th, 2010, 12:29am » |
|
on Mar 17th, 2010, 10:23pm, mavison wrote:| My 40 years in computing have taught me never to make assumptions! |
|
I can claim almost 40 years in computing too (probably wrote my first program, either in Fortran or FOCAL, in late 1970), but what I've learnt is that you should make assumptions - you should assume that what the documentation says will happen actually will happen! When you program in BBC BASIC you assume the interpreter will behave how it's documented to behave; you don't ask to see its source code. When you call a Windows API you assume it will behave how MSDN says it will behave, you don't ask to see Microsoft's code.
Quote:| And the Windows API is totally new to me, so I admit some desire to understand it better. |
|
Trying to learn about the Windows API by looking at the supplied libraries really is jumping in at the deep end. The complications of assembler code and multi-threading severely get in the way of understanding.
Far better, at least initially, to learn how to access API routines directly from a BASIC program. There are many published examples, Wiki articles etc. that you can study.
Richard.
|
|
Logged
|
|
|
|
mavison
New Member
member is offline


Posts: 14
|
 |
Re: Close icon problem
« Reply #15 on: Mar 19th, 2010, 4:18pm » |
|
I take documented things as facts, not assumptions, so we actually are agreeing!
My problem was that I had not noticed the bit in help which says that !dlg%=0 indicates the window is closed. I now have, and I am happy.
Thanks for your help Martin
|
|
Logged
|
|
|
|
|