What’s the difference between CopyIcon and DuplicateIcon?
What’s the difference between CopyIcon and DuplicateIcon ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
UPDATE: Apparently, CopyIcon and DuplicateIcon in fact do identical things (save for the function signature. The information below was written more than a year prior to that particular blog post, however it is based on official documentation. While Raymond Chen is an expert, his blog is explicitly not official documentation. It shouldn’t hurt to use either function, however.
According to Icon Duplication section in the About Icons article in the MSDN docs
It follows from these descriptions that you should use
CopyIcon()when you don’t need to modify the icon, but need a handle to it. UseDuplicateIcon()if you intend to modify it.There’s actually a method to MSDN’s madness. Almost all the MSDN documentation is separated into three sections:
where [topic] could be something like Icons, for example.
The “[topic] Reference” sections is a summary of all the functions and structures that are relevant to [topic]. If they don’t answer your question about a function, you may have better luck with the “About [topic]” and/or “Using [topic]“, which goes into more detail about [topic].