Google Currents 和Google Play Magazines合并成为 Google Play Newsstand,已于2013年11年21日在Google play发布,看了下原来的Google Reader还保留在Currents中,现在可以直接同步订阅到Google Play Newsstand,何必呢,Google?Reader被谋杀之后,还有人会钟情于Google Play Newsstand吗?看看最近表现吧..
BOOL CAnti_SleepDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE); // Set big icon
SetIcon(m_hIcon, FALSE); // Set small icon
SetWindowText("阻止屏保开启/计算机休眠");
long val=GetWindowLong(this->GetSafeHwnd(),GWL_STYLE);
val|= WS_SYSMENU; //需要系统菜单
SetWindowLong(this->GetSafeHwnd(),GWL_STYLE,val);
m_brush.CreateSolidBrush(RGB(0,0,255));
//ModifyStyle(0,WS_SYSMENU,0);
ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
ASSERT(IDM_ABOUTBOX < 0xF000);
CMenu* pSysMenu = GetSystemMenu(FALSE);
if (pSysMenu != NULL)
{
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_STRING, IDM_MINIWND, "隐藏到托盘");
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX,"关于.." );
}
pSysMenu->RemoveMenu(0,MF_BYPOSITION);
//pSysMenu->RemoveMenu(1,MF_BYPOSITION);
pSysMenu->RemoveMenu(2,MF_BYPOSITION);
pSysMenu->RemoveMenu(3,MF_BYPOSITION);
pSysMenu->RemoveMenu(SC_SIZE,MF_BYCOMMAND);
pSysMenu->RemoveMenu(SC_MAXIMIZE,MF_BYCOMMAND);
}
GetDlgItem(IDC_WORKSTATIC)->ShowWindow(FALSE);
quitBBT.AutoLoad(IDCANCEL,this);
quitBBT.LoadBitmaps(IDB_BITMAP3);
shutBBT.AutoLoad(ID_TIMESHUTDOWN,this);
shutBBT.LoadBitmaps(IDB_SHUTDOWNBMP);
hideBBT.AutoLoad(ID_TOTRAY,this);
hideBBT.LoadBitmaps(IDB_BITMAP2);
return TRUE; // return TRUE unless you set the focus to a control
}
不得不说在使用的时候遇到了问题,我需要的是操作office 2007+ 的xlsx文件,而且要用到excel的数据验证和下拉选框
(Data validation and drop down lists),这样问题显而易见了,这个包肯定不能用了。
于是,必须要重新选择其他方法了,这时Google给出了这个最佳答案: XlsxWriter! https://pypi.python.org/pypi/XlsxWriter
通过介绍可以看得出来,XlsxWriter可以操作xlsx文件,单元格写入文本,数字,公式,日期等不同格式;格式化表格,
图表,合并单元格等等。,最主要满足Data validation and drop down lists操作的需求。
excel 数据验证 xlsxWriter
XlsxWriter is a Python module for creating Excel XLSX files.
XlsxWriter supports the following features:
100% compatible Excel XLSX files.
Write text, numbers, formulas, dates to cells.
Write hyperlinks to cells.
Full cell formatting.
Multiple worksheets.
Charts.
Page setup methods for printing.
Merged cells.
Defined names.
Autofilters.
Data validation and drop down lists.
Conditional formatting.
Worksheet PNG/JPEG images.
Rich multi-format strings.
Cell comments.
Document properties.
Worksheet cell protection.
Freeze and split worksheet panes.
Worksheet Tables.
Sparklines.
Outlines and Grouping.
Memory optimisation mode for writing large files.
Standard libraries only.
Python 2.6, 2.7, 3.1, 3.2 and 3.3 support.