
22 Aug
2005
22 Aug
'05
5:36 p.m.
Rob Stewart wrote:
From: John Torjo <john.lists@torjo.com>
You're right. What comes to mind, is to have an extra parameter: bool add_even_if_name_exists.
So, if passing 'false', if "display" already exists, it's not added. If passing 'true', "display" is added even if it exists.
I suggest using an enumerated type. When called from user code, "true" and "false" convey no information. Enumerators can make the call self-documenting.
Yup, you're right. Will do so. Best, John -- John Torjo, Contributing editor, C/C++ Users Journal -- "Win32 GUI Generics" -- generics & GUI do mix, after all -- http://www.torjo.com/win32gui/ -v1.6.3 (Resource Splitter) -- http://www.torjo.com/cb/ - Click, Build, Run!