1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

実は存在するいろいろなカーソルたち

Last updated at Posted at 2018-07-13

※今回雑です。

経緯

ゲームを作っているうえで、手のアイコンや左右の矢印アイコンなどを組み込んでいたら偶然見つけました。

見つけ方

適当にプロジェクトを作成して、window.hをインクルードした状態で以下のコードを適当なところでもいいので書いてください。
実のところは「IDC_SIZENWSE」だけでいいです。

 cursor = LoadCursor(NULL, IDC_SIZENWSE);
 SetCursor(cursor);

そうしたら「IDC_SIZENWSE」を右クリックして「すべての参照を検索」というのをクリックして下に出てくるものの中に「WinUser.h」というファイルがあると思うのでそれを開いてください。

以下のような形で現れると思います。

vdicon.png

この画像にある「IDC_~」がすべてアイコンです。
気になる方は上のコードを見て「LoadCursor」を調べて弄ってみてください。懐かしいものからなんだこれってものまでいろいろあります。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?