2015-03-05 06:48:44 +01:00
|
|
|
// Test library configuration for windows.cfg
|
|
|
|
//
|
|
|
|
// Usage:
|
|
|
|
// $ cppcheck --check-library --library=windows --enable=information --enable=style --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr test/cfg/windows.cpp
|
|
|
|
// =>
|
|
|
|
// No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0
|
|
|
|
//
|
|
|
|
|
|
|
|
class CSharedFilesCtrl {
|
2015-03-08 16:23:54 +01:00
|
|
|
void OpenFile(const CShareableFile* file, int, int);
|
2015-03-05 06:48:44 +01:00
|
|
|
afx_msg void OnNmDblClk(NMHDR *pNMHDR, LRESULT *pResult);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
void CSharedFilesCtrl::OnNmDblClk(NMHDR* /*pNMHDR*/, LRESULT* pResult) {
|
|
|
|
if (file)
|
2015-03-08 16:23:54 +01:00
|
|
|
OpenFile(file,0,0); // <- not the windows OpenFile function
|
2015-03-05 06:48:44 +01:00
|
|
|
}
|