Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Win32 Project: Develop a win32 Project that, when executes, displays a digitalcl

ID: 3607760 • Letter: W

Question

Win32 Project:

Develop a win32 Project that, when executes, displays a digitalclock same to one shown in figure below. It must have followingcharacteristics:

1)      It must have the text “MyDigital Clock” and your student id. in title bar

2)      In window frame it must showyour student id and Name at left-top position

3)      Then in the center, it mustdisplay the time in 12-hours format, along with displaying AnteMeridiem (AM) and Post Meridiem (PM) as shown. From midnight 12:00to noon 12:00 it must display (AM) and from noon 12:00 to midnight12:00 it must display “PM”. Use win32 APIs toshow the current date and time.

4)      Then there will be Datedisplayed at the location shown in figure (Right Justified)

5)      At the bottom there will bethree push buttons with captions “Set Time”, “SetDate” and “Cancel” respectively.

6)      Pressing the “SetTime” button must display a separate dialog box, where youcould set the time (hours, minutes, seconds and AM/PM). Note thatyou can use separate text boxes for Hour, minute, seconds and youcan use a dropdown combo box for AM/PM. Pressing the“OK” button on this dialog box should cause that dialogbox to disappear and the time on Digital Clock to be adjustedaccordingly.

7)      Similarly pressing “SetDate” should also display a separate dialog box where youcould set date (year, month and day) and then pressing“OK” button on this dialog should adjust the date ondigital clock accordingly.

8)      Pressing the“Cancel” button should cause the digital clockapplication to exit, but first it should confirm from the use withmessage “Are You Sure to exit”. Pressing the“Yes” button on message box should cause theapplication to exit and pressing the “No” button shouldcause the application to sustain its running.

9)      Use win32 APIs and don’tuse MFC, ALT or any other library.

10) You are required to upload project files (debug folder,cpp, .dsp, .dsw, .h, .ncb, opt, .plg etc) in .zip or .rar formatand don’t send only .exe files.

Explanation / Answer

Incomplete answer: Code for digital clock is given at page 293 to 296 of : "Programming Windows" Fifth Edition By Charles Petzold.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote