Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > General > Chit Chat
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Chit Chat The place for open discussions.


What's The Difference?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-2008, 07:13 PM
Knows the basics
 
Join Date: May 2007
Posts: 86
Default What's The Difference?

Hi all, A question I should have asked as soon as I got into programming is what is the difference in a window and a control? E.G. is an edit field a window or a control? is a window simply a form like they are in Basic4ppc? Thanks.
Reply With Quote
  #2 (permalink)  
Old 03-08-2008, 08:38 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,219
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

At the lowest level everything in the Windows OS itself that you can interact with on the screen is a window. Each will be associated with a block of code called a Window Procedure (WndProc) which the OS calls passing Windows Messages. Each message comprises a number that identifies the message and two Int32 parameters called wParam and lParam. The contents of lParam and wParam depend upon the message. One of the most important messages is WM_PAINT that tells a window to draw itself.

From a higher point of view the distinction between Forms/Windows and Controls is what their WndProcs are written to do rather than how they are implemented. Forms are the top level containers that can host controls and other Forms. Controls provide the base level of user interaction accepting input and displaying results. However both are still based upon the Control class within .NET which as the documentation says "Defines the base class for controls, which are components with visual representation" so semantically, within .NET, nearly everything is a Control.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formsize no difference PC/PPC tvrman Questions & Help Needed 2 10-06-2007 05:04 PM
Difference Between Two Dates dvanwig Questions & Help Needed 7 08-02-2007 04:29 AM


All times are GMT. The time now is 05:54 PM.


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0