ディスクトップアクセサリーが欲しいと思い、検索をしたらそれらしきトピックを見つけました。
しかし、やってみるとウインドの端は消えていますが何も表示されていません。
一応見てくれますか?お願いします。
#include "DxLib.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow )
{
ChangeWindowMode( TRUE );
SetUseBackBufferTransColorFlag(TRUE);
SetDrawScreen(DX_SCREEN_BACK);
SetBackgroundColor(255, 255, 0) ;
if ( DxLib_Init( ) == -1 ) return -1;
SetTransColor(255,255,0);
while ( ProcessMessage( ) == 0 && CheckHitKey( KEY_INPUT_ESCAPE ) == 0)
{ SetWindowPos( GetMainWindowHandle() , HWND_TOPMOST, 0, 0, 300, 300, (SWP_SHOWWINDOW |SWP_NOSIZE) );
ClearDrawScreen();
DrawBox(0,0,640,480,GetColor(255,0,0),TRUE);
DrawBox(100,100,200,200,GetColor(255,255,0),TRUE);
ScreenFlip( );
}
DxLib_End( );
return 0;
}