Click here to Skip to main content
15,887,910 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need help to check my code why unzip operation not working Pin
Stefan_Lang4-Jun-14 22:11
Stefan_Lang4-Jun-14 22:11 
QuestionRe: need help to check my code why unzip operation not working Pin
David Crow4-Jun-14 7:15
David Crow4-Jun-14 7:15 
QuestionI want to know after spreex coding waveform file, convert ogg format function is? Pin
renxiaoyaoa83-Jun-14 16:35
renxiaoyaoa83-Jun-14 16:35 
AnswerRe: I want to know after spreex coding waveform file, convert ogg format function is? Pin
Richard MacCutchan3-Jun-14 21:49
mveRichard MacCutchan3-Jun-14 21:49 
QuestionHow to use MFC speex audio files (WAV format) for encoding, and converted to ogg files? Pin
renxiaoyaoa82-Jun-14 21:29
renxiaoyaoa82-Jun-14 21:29 
SuggestionRe: How to use MFC speex audio files (WAV format) for encoding, and converted to ogg files? Pin
Richard MacCutchan2-Jun-14 23:28
mveRichard MacCutchan2-Jun-14 23:28 
GeneralRe: How to use MFC speex audio files (WAV format) for encoding, and converted to ogg files? Pin
renxiaoyaoa83-Jun-14 16:12
renxiaoyaoa83-Jun-14 16:12 
QuestionDetect working area of primary monitor Pin
vg8open2-Jun-14 10:49
vg8open2-Jun-14 10:49 
I have a program that display a popup dialog above the notification area of the task bar. I am using the following function to get the work area of the primary monitor.

CRect rcDesktop;
::SystemParametersInfo(SPI_GETWORKAREA,0,&rcDesktop,0);

CRect rc;
GetWindowRect(rc);
ScreenToClient(rc);

unsigned int m_nStartPosX = rcDesktop.right - rc.Width() - 1;
unsigned int m_nStartPosY = rcDesktop.bottom - rc.Height();

SetWindowPos(
&wndTop,
m_nStartPosX,
m_nStartPosY,
rc.Width(),
rc.Height(),
SWP_NOOWNERZORDER | SWP_NOACTIVATE);

I tested my program on my single/dual monitor setups and it's working correctly, but one of my users reported that on his three monitor setup, the popup dialog is displaying on the wrong monitor. It seems like SystemParametersInfo() can't get the correct working area on his system. Does anyone know any other way to get the working area of the primary monitor?

-- modified 2-Jun-14 17:00pm.
AnswerRe: Detect working area of primary monitor Pin
peterchen3-Jun-14 1:58
peterchen3-Jun-14 1:58 
AnswerRe: Detect working area of primary monitor Pin
Randor 3-Jun-14 7:43
professional Randor 3-Jun-14 7:43 
QuestionAnyone done any Web Scraping in C++/MFC Pin
Bryan Anslow2-Jun-14 6:26
Bryan Anslow2-Jun-14 6:26 
GeneralRe: Anyone done any Web Scraping in C++/MFC Pin
Richard MacCutchan2-Jun-14 7:15
mveRichard MacCutchan2-Jun-14 7:15 
AnswerRe: Anyone done any Web Scraping in C++/MFC Pin
David Crow2-Jun-14 7:26
David Crow2-Jun-14 7:26 
GeneralRe: Anyone done any Web Scraping in C++/MFC Pin
Bryan Anslow2-Jun-14 8:36
Bryan Anslow2-Jun-14 8:36 
SuggestionRe: Anyone done any Web Scraping in C++/MFC Pin
David Crow2-Jun-14 9:22
David Crow2-Jun-14 9:22 
QuestionNewbee MFC Pin
C-P-User-31-Jun-14 14:23
C-P-User-31-Jun-14 14:23 
AnswerRe: Newbee MFC Pin
Richard MacCutchan1-Jun-14 21:49
mveRichard MacCutchan1-Jun-14 21:49 
AnswerRe: Newbee MFC Pin
jeron12-Jun-14 4:08
jeron12-Jun-14 4:08 
QuestionHOW I can pause the timer in qt Pin
sara741-Jun-14 1:42
sara741-Jun-14 1:42 
AnswerRe: HOW I can pause the timer in qt Pin
Albert Holguin2-Jun-14 5:34
professionalAlbert Holguin2-Jun-14 5:34 
Questionhow can i convert a QString to char* in QT Pin
sara741-Jun-14 1:24
sara741-Jun-14 1:24 
AnswerRe: how can i convert a QString to char* in QT Pin
Richard MacCutchan1-Jun-14 2:38
mveRichard MacCutchan1-Jun-14 2:38 
AnswerHow to convert a QString to char* (char pointer) in QT Pin
Software_Developer1-Jun-14 22:47
Software_Developer1-Jun-14 22:47 
QuestionQtimer class in Qt Pin
sara7431-May-14 20:17
sara7431-May-14 20:17 
AnswerRe: Qtimer class in Qt Pin
Richard MacCutchan31-May-14 21:03
mveRichard MacCutchan31-May-14 21:03 

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.