Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can I use SetWindowLongPtr function in VC6 ? Pin
mesajflaviu20-Feb-11 7:22
mesajflaviu20-Feb-11 7:22 
Question891130 - capturing an image from a camera Pin
ilostmyid219-Feb-11 2:25
professionalilostmyid219-Feb-11 2:25 
QuestionVISUAL C++ resource.h/rc madness mess Pin
andwan018-Feb-11 12:24
andwan018-Feb-11 12:24 
AnswerRe: VISUAL C++ resource.h/rc madness mess Pin
Hans Dietrich18-Feb-11 12:47
mentorHans Dietrich18-Feb-11 12:47 
AnswerRe: VISUAL C++ resource.h/rc madness mess Pin
Albert Holguin18-Feb-11 14:09
professionalAlbert Holguin18-Feb-11 14:09 
QuestionPlugin for activex Pin
S p k 52118-Feb-11 5:48
S p k 52118-Feb-11 5:48 
AnswerRe: Plugin for activex Pin
Luc Pattyn18-Feb-11 5:58
sitebuilderLuc Pattyn18-Feb-11 5:58 
QuestionAbout Resizing controls as per screen resolution.............. Pin
ddgalande18-Feb-11 0:22
ddgalande18-Feb-11 0:22 
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
AnswerRe: About Resizing controls as per screen resolution.............. Pin
ShilpiP18-Feb-11 1:09
ShilpiP18-Feb-11 1:09 
AnswerRe: About Resizing controls as per screen resolution.............. Pin
Richard MacCutchan18-Feb-11 2:48
mveRichard MacCutchan18-Feb-11 2:48 
AnswerRe: About Resizing controls as per screen resolution.............. Pin
Alan Balkany18-Feb-11 3:27
Alan Balkany18-Feb-11 3:27 
GeneralRe: About Resizing controls as per screen resolution.............. Pin
Hans Dietrich18-Feb-11 6:55
mentorHans Dietrich18-Feb-11 6:55 
GeneralRe: About Resizing controls as per screen resolution.............. Pin
Alan Balkany18-Feb-11 8:38
Alan Balkany18-Feb-11 8:38 
GeneralRe: About Resizing controls as per screen resolution.............. Pin
Hans Dietrich18-Feb-11 8:43
mentorHans Dietrich18-Feb-11 8:43 
QuestionType non-English characters at GINA / Windows logon Pin
Shashi.Shinde17-Feb-11 20:59
Shashi.Shinde17-Feb-11 20:59 
AnswerRe: Type non-English characters at GINA / Windows logon Pin
Richard MacCutchan17-Feb-11 22:05
mveRichard MacCutchan17-Feb-11 22:05 
GeneralRe: Type non-English characters at GINA / Windows logon Pin
Shashi.Shinde17-Feb-11 23:46
Shashi.Shinde17-Feb-11 23:46 
GeneralRe: Type non-English characters at GINA / Windows logon Pin
Richard MacCutchan18-Feb-11 1:29
mveRichard MacCutchan18-Feb-11 1:29 
AnswerRe: Type non-English characters at GINA / Windows logon Pin
ShilpiP18-Feb-11 5:57
ShilpiP18-Feb-11 5:57 
GeneralRe: Type non-English characters at GINA / Windows logon Pin
Shashi.Shinde20-Feb-11 19:45
Shashi.Shinde20-Feb-11 19:45 
QuestionNetwork Communication Pin
pix_programmer17-Feb-11 18:26
pix_programmer17-Feb-11 18:26 
AnswerRe: Network Communication [modified] Pin
LaxmikantYadav17-Feb-11 19:04
LaxmikantYadav17-Feb-11 19:04 
QuestionWich is the best way to launch/run an externall .exe app form vc++6 ? Pin
timbk17-Feb-11 10:53
timbk17-Feb-11 10:53 
AnswerRe: Wich is the best way to launch/run an externall .exe app form vc++6 ? Pin
Niklas L17-Feb-11 11:00
Niklas L17-Feb-11 11:00 
AnswerRe: Wich is the best way to launch/run an externall .exe app form vc++6 ? Pin
Hans Dietrich17-Feb-11 11:05
mentorHans Dietrich17-Feb-11 11:05 

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.