Click here to Skip to main content
15,915,850 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionList control in MFC Pin
Nikesh Jagtap8-Feb-11 17:24
Nikesh Jagtap8-Feb-11 17:24 
AnswerRe: List control in MFC Pin
Hans Dietrich8-Feb-11 18:29
mentorHans Dietrich8-Feb-11 18:29 
AnswerRe: List control in MFC Pin
_AnsHUMAN_ 8-Feb-11 18:34
_AnsHUMAN_ 8-Feb-11 18:34 
QuestionLogical Processors Vs Physical Processors Pin
Ahmed Charfeddine8-Feb-11 10:28
Ahmed Charfeddine8-Feb-11 10:28 
AnswerRe: Logical Processors Vs Physical Processors [modified] Pin
Luc Pattyn8-Feb-11 11:04
sitebuilderLuc Pattyn8-Feb-11 11:04 
GeneralRe: Logical Processors Vs Physical Processors Pin
Ahmed Charfeddine8-Feb-11 23:00
Ahmed Charfeddine8-Feb-11 23:00 
AnswerRe: Logical Processors Vs Physical Processors Pin
Luc Pattyn8-Feb-11 23:14
sitebuilderLuc Pattyn8-Feb-11 23:14 
GeneralRe: Logical Processors Vs Physical Processors Pin
Ahmed Charfeddine8-Feb-11 23:27
Ahmed Charfeddine8-Feb-11 23:27 
QuestionSynchronization Pin
Andry_st8-Feb-11 10:17
Andry_st8-Feb-11 10:17 
AnswerRe: Synchronization Pin
Ahmed Charfeddine8-Feb-11 10:29
Ahmed Charfeddine8-Feb-11 10:29 
AnswerRe: Synchronization Pin
Maximilien8-Feb-11 10:30
Maximilien8-Feb-11 10:30 
GeneralRe: Synchronization Pin
Andry_st9-Feb-11 0:39
Andry_st9-Feb-11 0:39 
QuestionShell's context menu items are all gray [modified] Pin
David Crow8-Feb-11 4:33
David Crow8-Feb-11 4:33 
QuestionRe: Shell's context menu items are all gray Pin
Maximilien8-Feb-11 5:06
Maximilien8-Feb-11 5:06 
AnswerRe: Shell's context menu items are all gray Pin
David Crow8-Feb-11 5:11
David Crow8-Feb-11 5:11 
GeneralRe: Shell's context menu items are all gray Pin
Maximilien8-Feb-11 6:47
Maximilien8-Feb-11 6:47 
GeneralRe: Shell's context menu items are all gray Pin
David Crow8-Feb-11 6:51
David Crow8-Feb-11 6:51 
QuestionIncremental search method for CEditview or CRicheditView Pin
ganesh.dp8-Feb-11 1:29
ganesh.dp8-Feb-11 1:29 
AnswerRe: Incremental search method for CEditview or CRicheditView Pin
Niklas L8-Feb-11 2:52
Niklas L8-Feb-11 2:52 
QuestionResizing controls as per screen resolution Pin
ddgalande8-Feb-11 1:27
ddgalande8-Feb-11 1:27 
AnswerRe: Resizing controls as per screen resolution Pin
Richard MacCutchan8-Feb-11 5:36
mveRichard MacCutchan8-Feb-11 5:36 
GeneralRe: Resizing controls as per screen resolution Pin
ddgalande18-Feb-11 0:18
ddgalande18-Feb-11 0:18 
hi,
i did not got your answer.

My question is that suppose my screen resolution is 1024x768 and i have designed my GUI as per the current resolution.

by using following code i can get my systems current resolution
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
{
MessageBox::Show("Screen Resolution is : " +monitor_width +" x " + monitor_height, "Dnyan", MessageBoxButtons::OK, MessageBoxIcon::Information);
double xRatio = monitor_height / 800.00;
double yRatio = monitor_width / 600.00;
}
public: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e)
{
monitor_height=Screen::PrimaryScreen->Bounds.Height;
monitor_width=Screen::PrimaryScreen->Bounds.Width;
}

Now suppose my project is in network and one persons system resolution is 800x600 second person screen resolution is 1024x768 and others is different
in this case i want to adjust control default location as well as its size as per screen resolution
then please tel me how its possible in C++ with Windows platform (in .net IDE)

Please help me
GeneralRe: Resizing controls as per screen resolution Pin
Richard MacCutchan18-Feb-11 1:42
mveRichard MacCutchan18-Feb-11 1:42 
AnswerRe: Resizing controls as per screen resolution Pin
Cedric Moonen8-Feb-11 20:08
Cedric Moonen8-Feb-11 20:08 
QuestionSortItems function of CListCtrl giving a error Pin
VCProgrammer7-Feb-11 22:26
VCProgrammer7-Feb-11 22:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.