free geoip

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cs410 Visual Programming Assignment no 2 idea solution apri l2011
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Q1 [Marks: 10]

Write a program using WinMain function in which you will display a message box. Message Box displays”Just another Hello World program!” in its title bar (title bar of message box) and “Hello World” in the message. (See the figure below)




Q2 [marks: 10]

Q No 2 Which are the non-client areas of windows? Briefly explain any four.


Attached Files
.zip   Spring 2011_CS410_2.zip (Size: 12.05 KB / Downloads: 211)
Reply
#2
Answer1:
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd)
{
MessageBox(NULL,
L"Hello World!",
L"Just another Hello World program!",
MB_ICONEXCLAMATION | MB_OK);
return 0;
}
Reply
#3
Answer2:
The Non-Client area of a window is defined as the area we don't draw on. The nonclient
area of a window is implemented by WPF and includes the parts of a window that
are common to most windows, including the following:
A border.
A border is an area around the perimeter of the window that enables the user to
size the window by using a mouse or other pointing device.
 A title bar.
A title bar displays an application-defined icon and line of text; typically, the
text specifies the name of the application or indicates the purpose of the
window. An application specifies the icon and text when creating the window. The
title bar also makes it possible for the user to move the window by using a mouse
or other pointing device.
 A menu bar.
A menu bar that lists the commands supported by the application. Items in the
menu bar represent the main categories of commands. Clicking an item on the
menu bar typically opens a pop-up menu whose items correspond to the tasks
within a given category. By clicking a command, the user directs the application to
carry out a task.
 Minimize, Maximize, and Restore buttons.
The buttons in the upper-right corner affect the size and position of the
window. When you click the maximize button, the system enlarges the window to
the size of the screen and positions the window, so it covers the entire desktop,
minus the taskbar. At the same time, the system replaces the maximize button
with the restore button. When you click the restore button, the system restores
the window to its previous size and position. When you click the minimize button,
the system reduces the window to the size of its taskbar button, positions the
window over the taskbar button, and displays the taskbar button in its normal
state. To restore the application to its previous size and position, click its taskbar
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  CS301 Assignment # 4 Due Date: 02-Feb-2016 Vuhelper 0 2,356 02-03-2016, 05:38 PM
Last Post: Vuhelper
  CS703 – Advanced Operating Systems Assignment No.3 solution January 2016 Vuhelper 0 5,943 01-23-2016, 09:58 PM
Last Post: Vuhelper
  CS601 Data Communication Assignment No. 03 Solution 23rd January 2016 Vuhelper 1 1,971 01-23-2016, 06:09 PM
Last Post: Vuhelper
  CS403 Assignment No. 03 Solution 23rd January 2016 Vuhelper 2 1,212 01-23-2016, 03:18 PM
Last Post: Vuhelper
  CS506 Web Design and Development Assignment no 3 Solution 3rd January 2016 Vuhelper 0 2,280 01-23-2016, 03:16 PM
Last Post: Vuhelper
  CS724 Software Process Improvement Assignment No 01 Solution 20th January 2016 Vuhelper 0 2,007 01-20-2016, 06:26 PM
Last Post: Vuhelper
  CS711 Software Design Assignment No 01 Solution Due Date Feb 12, 2016 Vuhelper 0 1,702 01-20-2016, 06:24 PM
Last Post: Vuhelper
  CS709 Formal Methods for Software Engineering Assignment No 01 Solution January 2016 Vuhelper 0 1,838 01-20-2016, 06:22 PM
Last Post: Vuhelper
  cs703 assignment no 3 Solution 20th January 2016 Vuhelper 0 1,739 01-20-2016, 06:20 PM
Last Post: Vuhelper
  CS704 Assignment No. 01 Solution January 2016 Vuhelper 0 4,835 01-20-2016, 06:19 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support