I have a program that needs to compile and run under Linux and Windows. I have a Dialog class that draws a very simple Dialog (on Windows it uses plain WinAPI, on Linux... I don't know. Haven't been so far yet;)
Should I know write two totally different classes (one for windows and one for linux) and just exclude the one that does not fit to the current platform or should I make one single class (one .cpp and one .h) and just code the platform specific parts inside the methods with #ifdefs?