add OFN_NOCHANGEDIR flag to OPENFILENAME::Flags in nana::filebox::show
http://blogs.msdn.com/b/oldnewthing/archive/2010/11/12/10089878.aspx setting OFN_NOCHANGEDIR flag to OPENFILENAME::Flags is effective for GetOpenFileName API on Windows7. add const qualifier to nana::paint::graphics::save_as_file add support for small icon on Windows. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption. https://msdn.microsoft.com/en-us/library/windows/desktop/ms632643%28v=vs.85%29.aspx
This commit is contained in:
@@ -359,11 +359,21 @@ namespace API
|
||||
restrict::window_manager.default_icon(img);
|
||||
}
|
||||
|
||||
void window_icon_default(const paint::image& big_icon, const paint::image& small_icon)
|
||||
{
|
||||
restrict::window_manager.default_icon(big_icon, small_icon);
|
||||
}
|
||||
|
||||
void window_icon(window wd, const paint::image& img)
|
||||
{
|
||||
restrict::window_manager.icon(reinterpret_cast<restrict::core_window_t*>(wd), img);
|
||||
}
|
||||
|
||||
void window_icon(window wd, const paint::image& big_icon, const paint::image& small_icon)
|
||||
{
|
||||
restrict::window_manager.icon(reinterpret_cast<restrict::core_window_t*>(wd), big_icon, small_icon);
|
||||
}
|
||||
|
||||
bool empty_window(window wd)
|
||||
{
|
||||
return (restrict::window_manager.available(reinterpret_cast<restrict::core_window_t*>(wd)) == false);
|
||||
|
||||
Reference in New Issue
Block a user