• R/O
  • HTTP
  • SSH
  • HTTPS

wtklite: コミット

A light-weight C++ object model framework Windows API Tool Kit


コミットメタ情報

リビジョン564c2419097d9f87af15a45032611062b30d884a (tree)
日時2013-08-20 06:04:44
作者Keith Marshall <keithmarshall@user...>
コミッターKeith Marshall

ログメッセージ

Add simplified support for changing window captions.

変更サマリ

差分

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
11 2013-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Add simplified support for changing window captions.
4+
5+ * wtklite.h (ChangeCaption): New static inline function; implement it.
6+
7+2013-08-19 Keith Marshall <keithmarshall@users.sourceforge.net>
8+
39 Add facility for control of child window placement.
410
511 * wtkalign.h: New file; it declares the API for...
--- a/wtklite.h
+++ b/wtklite.h
@@ -320,6 +320,14 @@ BEGIN_NAMESPACE( WTK )
320320 */
321321 EXTERN_C int RaiseAppWindow( HINSTANCE, unsigned int );
322322
323+ static __inline__
324+ int ChangeCaption( HWND window, const char *caption )
325+ {
326+ /* Helper to change the title bar caption on a specified window.
327+ */
328+ return SendMessage( window, WM_SETTEXT, 0, (LPARAM)(caption) );
329+ }
330+
323331 END_NAMESPACE( WTK )
324332
325333 #endif /* ! WTKLITE_H: $RCSfile$: end of file */
旧リポジトリブラウザで表示