> On topic, See if you can figure out what to do with the following:
>
> private const int WM_NCMOUSEMOVE = 0xa0;
> private const int WM_NCLBUTTONDOWN = 0xa1;
> private const int WM_NCLBUTTONUP = 0xa2;
> private const int HTCAPTION = 2;
> private const int SC_MOVE = 0xF010;
> private const int WM_SYSCOMMAND = 0x0112;
>
> protected override void WndProc(ref System.Windows.Forms.Message
> pMessage)
> {
> switch (pMessage.Msg)
> {
> case WM_NCMOUSEMOVE:
> Console.WriteLine("WM_NCMOUSEMOVE");
> break;
> case WM_NCLBUTTONDOWN:
> Console.WriteLine("WM_NCLBUTTONDOWN");
> break;
> case WM_NCLBUTTONUP:
> Console.WriteLine("WM_NCLBUTTONUP");
> break;
> case HTCAPTION:
> Console.WriteLine("HTCAPTION");
> break;
> case SC_MOVE:
> Console.WriteLine("SC_MOVE");
> break;
> case WM_SYSCOMMAND:
> Console.WriteLine("WM_SYSCOMMAND");
> break;
> }
>
> base.WndProc(ref pMessage);
> }
Perfect! Thank you so much. Not only is this a big shove in the right
direction, but I can see possible uses for it beyond my immediate needs.
RE: the other guy - the self-poclaimed "noob" (whatever that is), here is
some excellent reading:
http://www.catb.org/~esr/faqs/smart-questions.html
While that article is about posting questions, many of the points and
certainly the spirit of the document can easily be generalized to responding
to questions. The document is a bit lengthy, so I'll point out that one
important point the document states is that it's totally unhelpful - even
irrellevant to anything - to point out oneself as a "newbie" (or "noob" for
the lazy). Why the self-effacing blather? It's unprofessional, unhelpful,
and irrellevant. And we're not "texting" each other here. So no need to go
with all the contractions... r u ok wit dat? ROTFLMAO! How are we supposed
to take you seriously when you come to this group with that (rhetorical
question).
-Bob