Click here to Skip to main content
15,922,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProxy chains? Pin
Hoornet939-Feb-05 5:22
Hoornet939-Feb-05 5:22 
AnswerRe: Proxy chains? Pin
Hoornet9317-Mar-05 3:31
Hoornet9317-Mar-05 3:31 
GeneralFirst Win32 Program Pin
Member 17030439-Feb-05 5:10
Member 17030439-Feb-05 5:10 
GeneralRe: First Win32 Program Pin
Blake Miller9-Feb-05 7:29
Blake Miller9-Feb-05 7:29 
GeneralRe: First Win32 Program Pin
Member 17030439-Feb-05 7:50
Member 17030439-Feb-05 7:50 
GeneralRe: First Win32 Program Pin
Blake Miller9-Feb-05 8:05
Blake Miller9-Feb-05 8:05 
GeneralRe: First Win32 Program Pin
Ryan Binns9-Feb-05 17:44
Ryan Binns9-Feb-05 17:44 
GeneralRe: First Win32 Program Pin
Blake Miller10-Feb-05 4:07
Blake Miller10-Feb-05 4:07 
I beg to differ.

A BYTE was used, previously, to store the control's identifier, thus limiting the number of child windows to 255 in the resource template. Since most people used dialog templates and not in-memory dynamic resource tempaltes, they were 'essentially' limited to 25 controls on a single dialog.

Of course, if you are just building windows on the fly, you are limited only by memory or GDI resources, or some other commodity you will eventually deplete.

Another thing is, even though the current windows systems are typically entirely 32 bit environments, there are still many 'window identifiers' passed around as the upper or lower 16-bits of various window messages, so you are, in some cases, limited to 65535 windows, depending upon your circumstances.

As far as 'child controls' the window control child identifier is a 16 bit number, so even if you made more than 65535 child control windows, you would only be able to distinguich 65535 of them from each other. And you would also run into the messaging LOWOR/HIWORD problem. Just see the wParam of the WM_COMMAND message, and I quote MSDN:

The high-order word specifies the notification code if the message is from a control. If the message is from an accelerator, this value is 1. If the message is from a menu, this value is zero.
The low-order word specifies the identifier of the menu item, control, or accelerator.

GeneralRe: First Win32 Program Pin
Ryan Binns10-Feb-05 12:42
Ryan Binns10-Feb-05 12:42 
GeneralRe: First Win32 Program Pin
Blake Miller11-Feb-05 4:02
Blake Miller11-Feb-05 4:02 
GeneralRe: First Win32 Program Pin
Ryan Binns11-Feb-05 13:22
Ryan Binns11-Feb-05 13:22 
GeneralRe: First Win32 Program Pin
David Crow10-Feb-05 9:32
David Crow10-Feb-05 9:32 
GeneralThe 'Call' instruction Pin
Rajas P9-Feb-05 4:28
Rajas P9-Feb-05 4:28 
GeneralRe: The 'Call' instruction Pin
Antony M Kancidrowski9-Feb-05 5:29
Antony M Kancidrowski9-Feb-05 5:29 
GeneralRe: The 'Call' instruction Pin
Ryan Binns9-Feb-05 17:52
Ryan Binns9-Feb-05 17:52 
GeneralSNTP server Pin
Anonymous9-Feb-05 4:10
Anonymous9-Feb-05 4:10 
GeneralRe: SNTP server Pin
markkuk9-Feb-05 12:22
markkuk9-Feb-05 12:22 
GeneralCDatabase OpenEx Error Connecting Pin
KatyLee9-Feb-05 4:04
sussKatyLee9-Feb-05 4:04 
GeneralRe: CDatabase OpenEx Error Connecting Pin
David Crow9-Feb-05 4:07
David Crow9-Feb-05 4:07 
GeneralRe: CDatabase OpenEx Error Connecting Pin
KatyLee9-Feb-05 4:48
sussKatyLee9-Feb-05 4:48 
GeneralRe: CDatabase OpenEx Error Connecting Pin
David Crow9-Feb-05 5:05
David Crow9-Feb-05 5:05 
QuestionFindText() and FindText2() functions in CHtmlView class for searching on different pages. Is it possible? Pin
bilas9-Feb-05 3:46
bilas9-Feb-05 3:46 
Questiona question for ListCtrl ? Pin
wushli9-Feb-05 2:23
wushli9-Feb-05 2:23 
AnswerRe: a question for ListCtrl ? Pin
David Crow9-Feb-05 2:26
David Crow9-Feb-05 2:26 
AnswerRe: a question for ListCtrl ? Pin
RChin9-Feb-05 5:53
RChin9-Feb-05 5:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.