ppescher / resizablelib

A set of MFC classes to easily make resizable windows
Other
55 stars 27 forks source link

GCL_HICON not found in file ResizableFormViewMDI\DemoView.cpp ... #15

Closed 0ric1 closed 4 years ago

0ric1 commented 4 years ago

should it be IDC_ICON1?

ppescher commented 4 years ago

Nope, it's a windows constant used in calls to GetClassLong(). What exactly is the error you are getting?

ppescher commented 4 years ago

I don't remember why it was that way, but I think it is trying to show a different icon depending on the parent frame the view is loaded into.

See: https://github.com/ppescher/resizablelib/search?q=GCL_HICON&type=Code

0ric1 commented 4 years ago

What exactly is the error you are getting? I was building (Build / Batch Build - Select All / Rebuild) with Visual Studio 2019 16.3 Preview 2 (I did not upgrade the projects). At work I don't get the error - need to try it again at home.

0ric1 commented 4 years ago

I found the problem: at work I have VS 2017 and VS 2019 installed at home only the newest VS 2019 Preview. The installer of VS 2019 has only the "C++-Windows XP ... 2017 .. v141" available for installation - no more "XP ... 2015 .. v140", but the projects needs "... 2015 ... v140". So my fault - sorry.