• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

Void

The small icon doesn't show in taskbar?

8 posts in this topic

If you are using MFC in a funny way (which most of us do for game programming) or not using MFC at all, you need to set some of these yourself. The large icon is set by the call to AfxRegisterWndClass, but you can set the small one with:

SetIcon(AfxGetApp()->LoadIcon(IDR_MAINFRAME), FALSE);

The boolean specifies if you are setting the BIG icon (TRUE) or the SMALL icon (FALSE)

0

Share this post


Link to post
Share on other sites
I'm using win32 and no it still doesn't show up even if I explicitly send a WM_SETICON message (which should be the SetIcon equiv).

Does it require registry entries or what?

0

Share this post


Link to post
Share on other sites

I would like to know the answer to this one if there is a reasonable solution.

My understanding of the big and small icons is so that your application conforms to the windows display.

Windows actually selects which icon to display depending on the context of which it is viewed.

For instance, the big icon (32x32) is displayed in the task bar, while the small icon (16x16) is displayed when you view your .exe in explorer. If the small icon is not available, then the big icon is scaled to size.

-mordell

0

Share this post


Link to post
Share on other sites
I was under the same impression too but Starcraft is minimized, the spaceship icon shows beside its class name in the taskbar. Mine doesn;t, although the icon is displayed in the file executable when I choose view large/small icon.

Every active program has an icon besides the class name in the taskbar, except mine? What else do I set to set besides the icon while registering the class?

0

Share this post


Link to post
Share on other sites

Ahhh....apologies!

I was under the impression you wanted your small icon to appear in the task bar, not that you didn't see your icon at all in the task bar!

I guess make sure that when you are building your WNDCLASSEX data you verify that LoadIcon succeeds.

Also, in the case of dialogs, you can set the icon like so:

SendMessage(hwndDlg, WM_SETICON, ICON_BIG,
(LPARAM)LoadIcon(hApp, MAKEINTRESOURCE(IDI_ICON)));


hmm..I was toying around with getting the small icon to appear in the caption and the task bar and this seems to work:

wcex.hIconSm = (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IDI_WIN32), IMAGE_ICON, 16, 16, 0);

The icon IDI_WIN32 contains both a 32x32 and a 16x16 icon, LoadImage apparently loaded the correct icon based on the size params I passed in.

Afraid thats not a whole lot of help with your problem, tho. Maybe if you post your window registration code..?

-mordell

0

Share this post


Link to post
Share on other sites
Thanks but I have found the answer.

You need to set the CS_SYSMENU flag when u register the class or the icon will never show. I guess MFC does that behind the scenes but too bad I'm not using it.

but in doing so I seem to find a disturbing fact about dx. Will post more of it once I tested my findings.

0

Share this post


Link to post
Share on other sites

Void,

Where did you find information about CS_SYSMENU? What does it do?

I have never used it. The only style flags I have ever used when registering a class is CS_HREDRAW | CS_VREDRAW and occasionally CS_OWNDC...thats about it.

The only reason I mention it is because I do not use MFC, and my apps have always had an icon in the taskbar or caption. The only thing I do is set the icon params of the WNDCLASSEX structure prior to RegisterClassEx.

ack! I just thought of something! Do you mean WS_SYSMENU, a style flag used in the call to CreateWindowEx? That could be it then, I typically use the WS_OVERLAPPEDWINDOW style, which includes WS_SYSMENU. That could explain it.

-mordell

0

Share this post


Link to post
Share on other sites
Hi,

I was under the impression the taskbar would show the small icon besides the class name when u set the wndclass icon member but it seems not to?

Anyone knows how to do it?

0

Share this post


Link to post
Share on other sites
Yes.. sorry about it.

it is WS_SYSMENU, not CS_SYSMENU...

An very annoying undocumented feature.

0

Share this post


Link to post
Share on other sites