2020-05-01から1ヶ月間の記事一覧
WindowsAPIを使うことで、フォーム内の特定の色を透過させることができる。①まずは ・FindWindowA ・GetWIndowLongA ・SetWindowLongA を使って、透過するウィンドウのIDをLONG型で取得する。②次に、取得したウィンドウにSetLayeredWindowAttributesを使って…
まずはFormクラスを継承したGameクラスを作成し、WindowsFormを表示させる。 using System; using System.Windows.Forms; class Game:Form { static void Main() { Application.Run( new Game()); } } 次にタイトルとサイズを変更してみる。FormクラスのOnLo…