Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Storing Password in Outlook Express using "RegSetValueEx" Pin
amano8u2-Feb-06 16:10
amano8u2-Feb-06 16:10 
GeneralRe: Storing Password in Outlook Express using "RegSetValueEx" Pin
ThatsAlok2-Feb-06 18:10
ThatsAlok2-Feb-06 18:10 
GeneralRe: Storing Password in Outlook Express using "RegSetValueEx" Pin
amano8u2-Feb-06 18:47
amano8u2-Feb-06 18:47 
AnswerRe: Storing Password in Outlook Express using "RegSetValueEx" Pin
Ryan Binns2-Feb-06 17:27
Ryan Binns2-Feb-06 17:27 
GeneralRe: Storing Password in Outlook Express using "RegSetValueEx" Pin
amano8u2-Feb-06 17:33
amano8u2-Feb-06 17:33 
QuestionHow to program use MFC to control two monitors Pin
dli_9802-Feb-06 13:12
dli_9802-Feb-06 13:12 
AnswerRe: How to program use MFC to control two monitors Pin
EXTEIDE2-Feb-06 14:51
EXTEIDE2-Feb-06 14:51 
AnswerRe: How to program use MFC to control two monitors Pin
normanS5-Feb-06 18:46
normanS5-Feb-06 18:46 
I have an application which works with multiple monitors. I follow the process shown below (C not MFC, but the idea is the same.)

Start by setting up the monitors in Windows so they display diferent information.

Use EnumDisplayMonitors(NULL, NULL, MonitorInfoProc, 0) - the MonitorInfoProc callback procedure is called once for each monitor, and receives a handle to each monitor.

Using that handle (within MonitorInfoProc ), you can get the parameters for each monitor, by using GetMonitorInfo(hMon1, &monitorInfo), and then access the various parameters such as lMonitorTop[uMonitorBeingEnumerated] = monitorInfo.rcMonitor.top and lMonitorLeft[uMonitorBeingEnumerated] = monitorInfo.rcMonitor.left.
Look at the members of the MONITORINFO structure to see what information is available.

Once you have the top left of each monitor and the size of each monitor, use SetWindowPos to position your windows where you want them.
QuestionHow to get messages from a non std keypad with joystick in the middle Pin
dli_9802-Feb-06 10:39
dli_9802-Feb-06 10:39 
AnswerRe: How to get messages from a non std keypad with joystick in the middle Pin
EXTEIDE2-Feb-06 14:55
EXTEIDE2-Feb-06 14:55 
Questionstudent Pin
first09022-Feb-06 8:42
first09022-Feb-06 8:42 
AnswerRe: student Pin
David Crow2-Feb-06 10:14
David Crow2-Feb-06 10:14 
AnswerRe: student Pin
normanS2-Feb-06 19:25
normanS2-Feb-06 19:25 
GeneralRe: student Pin
first09023-Feb-06 3:45
first09023-Feb-06 3:45 
GeneralRe: student Pin
normanS5-Feb-06 18:16
normanS5-Feb-06 18:16 
QuestionOverlay Graphics on External Application Pin
yeela2-Feb-06 8:41
yeela2-Feb-06 8:41 
AnswerRe: Overlay Graphics on External Application Pin
EXTEIDE2-Feb-06 14:37
EXTEIDE2-Feb-06 14:37 
AnswerRe: Overlay Graphics on External Application Pin
Ryan Binns2-Feb-06 17:30
Ryan Binns2-Feb-06 17:30 
QuestionWindows Message Question Pin
Xiangyang Liu 刘向阳2-Feb-06 8:17
Xiangyang Liu 刘向阳2-Feb-06 8:17 
AnswerRe: Windows Message Question Pin
Maximilien2-Feb-06 8:38
Maximilien2-Feb-06 8:38 
GeneralRe: Windows Message Question Pin
Xiangyang Liu 刘向阳2-Feb-06 8:47
Xiangyang Liu 刘向阳2-Feb-06 8:47 
GeneralRe: Windows Message Question Pin
Maximilien2-Feb-06 8:49
Maximilien2-Feb-06 8:49 
GeneralRe: Windows Message Question Pin
Xiangyang Liu 刘向阳2-Feb-06 9:07
Xiangyang Liu 刘向阳2-Feb-06 9:07 
GeneralRe: Windows Message Question Pin
David Crow2-Feb-06 10:16
David Crow2-Feb-06 10:16 
AnswerRe: Windows Message Question Pin
Michael Dunn2-Feb-06 8:51
sitebuilderMichael Dunn2-Feb-06 8:51 

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.