This commit is contained in:
qPCR4vir
2016-03-04 23:54:42 +01:00
parent dae3b4e815
commit 7125ab8f48
4 changed files with 68 additions and 13 deletions

View File

@@ -143,9 +143,17 @@ namespace API
};
}//end namespace detail
void exit();
void exit(); ///< close all windows in current thread
void exit_all(); ///< close all windows
std::string transform_shortkey_text(std::string text, wchar_t &shortkey, std::string::size_type *skpos);
/// @brief Searchs whether the text contains a '&' and removes the character for transforming.
/// If the text contains more than one '&' charachers, the others are ignored. e.g
/// text = "&&a&bcd&ef", the result should be "&abcdef", shortkey = 'b', and pos = 2.
std::string transform_shortkey_text
( std::string text, ///< the text is transformed
wchar_t &shortkey, ///< the character which indicates a short key.
std::string::size_type *skpos ///< retrives the shortkey position if it is not a null_ptr;
);
bool register_shortkey(window, unsigned long);
void unregister_shortkey(window);

View File

@@ -23,6 +23,7 @@
#include "msgbox.hpp"
#include "place.hpp"
namespace nana
{
namespace detail