Click here to Skip to main content
15,909,437 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionStroustrup's RAII code Pin
elelont25-Jun-14 4:15
elelont25-Jun-14 4:15 
AnswerRe: Stroustrup's RAII code Pin
Richard MacCutchan5-Jun-14 6:07
mveRichard MacCutchan5-Jun-14 6:07 
AnswerRe: Stroustrup's RAII code Pin
CPallini5-Jun-14 6:42
mveCPallini5-Jun-14 6:42 
AnswerRe: Stroustrup's RAII code Pin
Joe Woodbury5-Jun-14 7:52
professionalJoe Woodbury5-Jun-14 7:52 
QuestionIFileSaveDialog / Filename Pin
jung-kreidler4-Jun-14 1:50
jung-kreidler4-Jun-14 1:50 
AnswerRe: IFileSaveDialog / Filename Pin
Albert Holguin5-Jun-14 9:35
professionalAlbert Holguin5-Jun-14 9:35 
GeneralRe: IFileSaveDialog / Filename Pin
jung-kreidler5-Jun-14 20:01
jung-kreidler5-Jun-14 20:01 
GeneralRe: IFileSaveDialog / Filename Pin
Albert Holguin6-Jun-14 6:41
professionalAlbert Holguin6-Jun-14 6:41 
Questionneed help to check my code why unzip operation not working Pin
Member 42018203-Jun-14 22:20
Member 42018203-Jun-14 22:20 
AnswerRe: need help to check my code why unzip operation not working Pin
tagopi3-Jun-14 22:26
tagopi3-Jun-14 22:26 
QuestionRe: need help to check my code why unzip operation not working Pin
CPallini3-Jun-14 22:27
mveCPallini3-Jun-14 22:27 
AnswerRe: need help to check my code why unzip operation not working Pin
Member 42018203-Jun-14 22:58
Member 42018203-Jun-14 22:58 
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 

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.