• R/O
  • SSH
  • HTTPS

rcsharp: コミット


コミットメタ情報

リビジョン5 (tree)
日時2013-11-16 21:01:39
作者srz_zumix

ログメッセージ

リンクラベルをラベルとして出力するように変更

変更サマリ

差分

--- trunk/Sample/stdafx.h (revision 4)
+++ trunk/Sample/stdafx.h (revision 5)
@@ -16,6 +16,7 @@
1616 #include <malloc.h>
1717 #include <memory.h>
1818 #include <tchar.h>
19+#include <commctrl.h>
1920
2021
2122 // TODO: プログラムに必要な追加ヘッダーをここで参照してください。
--- trunk/Sample/Sample.cpp (revision 4)
+++ trunk/Sample/Sample.cpp (revision 5)
@@ -4,6 +4,8 @@
44 #include "stdafx.h"
55 #include "Sample.h"
66
7+#pragma comment(lib, "comctl32.lib")
8+
79 #define MAX_LOADSTRING 100
810
911 // グローバル変数:
@@ -41,6 +43,16 @@
4143 }
4244
4345 LoadLibrary(_T("riched20.dll"));
46+ InitCommonControls();
47+#if 0
48+ INITCOMMONCONTROLSEX ic;
49+ ic.dwSize = sizeof(INITCOMMONCONTROLSEX);
50+ ic.dwICC = ICC_LINK_CLASS;
51+ if(!InitCommonControlsEx(&ic))
52+ {
53+ return FALSE;
54+ }
55+#endif
4456
4557 hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_SAMPLE));
4658
--- trunk/RCSharp/RCFile.cs (revision 4)
+++ trunk/RCSharp/RCFile.cs (revision 5)
@@ -1164,7 +1164,15 @@
11641164 string strStyle = CSRCWindow.MakeStyleString(ctrlstyle.ToString(), style.ToString());
11651165
11661166 string text = "\"<a>" + ctrl.Text + "</a>\"";
1167- return CSRCControl.Serialize(form, ctrl, name, resIDs, text, "SysLink", strStyle, out buf);
1167+ string strID = CSResID.MakeIDString("IDC_", name);
1168+ string notStyle = CSRCWindow.GetNotStyleString(ctrl);
1169+ buf += CSRCDialog.MakeScriptString(form, CSRCFileStream.DLGSCRIPTTYPE.LTEXT
1170+ , ctrl, text, strID, CSRCWindow.MakeStyleString(style.ToString(), notStyle));
1171+ buf += CRLF;
1172+
1173+ resIDs.Add(strID);
1174+ return true;
1175+ //return CSRCControl.Serialize(form, ctrl, name, resIDs, text, "SysLink", strStyle, out buf);
11681176 }
11691177 #endregion
11701178
旧リポジトリブラウザで表示