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-08-14 01:36:44 +02:00
|
|
|
void OpenFile(const CShareableFile* file, int, int);
|
|
|
|
afx_msg void OnNmDblClk(NMHDR *pNMHDR, LRESULT *pResult);
|
2015-03-05 06:48:44 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2015-08-14 01:36:44 +02:00
|
|
|
void CSharedFilesCtrl::OnNmDblClk(NMHDR* /*pNMHDR*/, LRESULT* pResult)
|
|
|
|
{
|
|
|
|
if (file)
|
|
|
|
OpenFile(file,0,0); // <- not the windows OpenFile function
|
2015-03-05 06:48:44 +01:00
|
|
|
}
|