3
我有一個Win32程序,其中主窗口是一個對話框,所以我可以使用resource.rc文件創建所有控件。我被困在創建一個使用unicode字符的按鈕。它適用於使用CreateWindowEx()函數,但不適用於資源文件。這是爲什麼?可以在Win32資源文件中使用unicode字符嗎?
我試着在我的資源文件的代碼以下行:
#include <wchar.h> // tried with and without this header file
// also tried defining UNICODE but i got an error saying it was already defined
CONTROL "\u2190", IDC_BACK //...more stuff
CONTROL L"\u2190", IDC_BACK //...more stuff
是可以在資源文件中使用Unicode。 – Xearinox