Hi guys, so i have been working through this Programming Windows book and im up to like page 100. I just want to confirm something before i keep going on so that i know my understanding of a standard windows program is correct. My question is just a simple one about the layout of the program. Ok so in WinMain we setup our windows class, register it, etc. But am i correct in saying that the 'Brain' of the program lies in the function: LRESULT CALLBACK WndProc ? Because it is that function that handles the messages going into the Windows Queue and then tells windows what to do if this message is next or if that message is next, under the switch statement. Is that right?
My last questions are firstly what other uses does the WinMain function have (im sure there are plenty of them, just a roundabout general answer would make me happy )? And where are other program things handled? Such as if it were an encryption program for example. Where would the actual Encryption take place (in WinMain, Main, WndProc, etc...)? Thanks everyone!