cocos2d設定ウィンドウのタイトル

	//窗口标题
の#ifdef WIN32 
		CCEGLView * pGlView = CCDirector :: sharedDirector() - > getOpenGLView(); 
		IF(pGlView)
		{ 
			のstd ::文字列TEMP = U8ToA(name.c_str())。
			INT LEN = MultiByteToWideCharの(CP_ACP、0、(LPCSTR)temp.c_str()、-1、NULL、0); 
			wchar_t型* wszUtf8 =新しいのwchar_t [LEN + 1]; 
			memset(wszUtf8、0、* 2 + 2 LEN)。
			MultiByteToWideCharの(CP_ACP、0、(LPCSTR)temp.c_str()-1、(LPWSTR)wszUtf8、LEN)。
			std :: wstringのszDst = wszUtf8。
			[] wszUtf8を削除します。

			// LPCWSTR 
			HWND _handle = pGlView-> getHWnd(); 
			SetWindowTextW(_handle、szDst.c_str())。

			
		} 
		
#endifの

  

おすすめ

転載: www.cnblogs.com/gamesky/p/11699652.html