S
sourcewielder
Guest
Hi.
I have a very simple task at hand: create an app (actually I need a DLL) that pops up a dialog with a "blinking led", which means I need a white circle and a red circle to interchange according to function calls.
I started by just creating a project, and dialog box, and then I tried to add a BMP to the dialog. There are many tutorials but VS 2019 (community) does not look like any of those. I am faced with problems no matter what i try:
1. Some tutorials say to use the "Picture Box" element from the toolbox and add it into the dialog. But I only have "Picture Control" and it works differently. There is no visible way to associate a picture, except manipulating the properties. Alas, in the properties I can't see BMPs i added as resources...
2. When adding a BMP (import) it is not assigned with an ID. I don't see how I can change that. That explains #1, maybe.
3. So instead of importing, I added a BMP internally in VS and painted it. These do get IDs, but when I add them to the dialog I get a black internal box with a fixed size. The BMP is not showed in it, nothing.
4. trying to somehow get to "Picture Box" I opened the toolbox configuration. An item named "Picture box" is ticked! And I can't see "Picture Control" there... In the toolbox itself, as mentioned, I have only "Picture Control"...
Would appreciate your help.
Thanks.
Continue reading...
I have a very simple task at hand: create an app (actually I need a DLL) that pops up a dialog with a "blinking led", which means I need a white circle and a red circle to interchange according to function calls.
I started by just creating a project, and dialog box, and then I tried to add a BMP to the dialog. There are many tutorials but VS 2019 (community) does not look like any of those. I am faced with problems no matter what i try:
1. Some tutorials say to use the "Picture Box" element from the toolbox and add it into the dialog. But I only have "Picture Control" and it works differently. There is no visible way to associate a picture, except manipulating the properties. Alas, in the properties I can't see BMPs i added as resources...
2. When adding a BMP (import) it is not assigned with an ID. I don't see how I can change that. That explains #1, maybe.
3. So instead of importing, I added a BMP internally in VS and painted it. These do get IDs, but when I add them to the dialog I get a black internal box with a fixed size. The BMP is not showed in it, nothing.
4. trying to somehow get to "Picture Box" I opened the toolbox configuration. An item named "Picture box" is ticked! And I can't see "Picture Control" there... In the toolbox itself, as mentioned, I have only "Picture Control"...
Would appreciate your help.
Thanks.
Continue reading...