Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Catching clicking Pin
alex.barylski28-Oct-03 11:58
alex.barylski28-Oct-03 11:58 
GeneralRe: Catching clicking Pin
yndfcd28-Oct-03 13:35
yndfcd28-Oct-03 13:35 
GeneralRe: Catching clicking Pin
Peter Molnar29-Oct-03 14:27
Peter Molnar29-Oct-03 14:27 
Generalusing Indic scripts in MFC in Win2K Pin
sagmam28-Oct-03 5:00
sagmam28-Oct-03 5:00 
QuestionHow to open a file in a different directory Pin
Deepak Samuel28-Oct-03 4:37
Deepak Samuel28-Oct-03 4:37 
AnswerRe: How to open a file in a different directory Pin
sagmam28-Oct-03 5:02
sagmam28-Oct-03 5:02 
AnswerRe: How to open a file in a different directory Pin
valikac28-Oct-03 5:47
valikac28-Oct-03 5:47 
GeneralResolution Problems Pin
Bernhard28-Oct-03 3:32
Bernhard28-Oct-03 3:32 
Well... in our application, we've changed the resolution dynamically, when the resolution was too small to show the whole dialog.

In WinNt4.0 there weren't any problems, in Win2k strange things occur (it seems that the WM_DISPLAYCHANGE message isn't sent.. cause the toolbar stays at the position [looks like it is floating around on the screen)

the code
[pre]
void CMainFrame::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
CFrameWnd::OnActivate(nState, pWndOther, bMinimized);

// TODO: Add your message handler code here

if(nState == WA_INACTIVE)
ChangeDisplaySettings(NULL, 0);

if(nState != WA_INACTIVE){
DEVMODE* pDevMode;

pDevMode = new DEVMODE;

pDevMode->dmSize = sizeof(DEVMODE);
// dm.dmDriverExtra = 800;
if(EnumDisplaySettings(NULL,ENUM_CURRENT_SETTINGS, pDevMode )){
DWORD dw_width = pDevMode->dmPelsWidth;
DWORD dw_height= pDevMode->dmPelsHeight;

if(dw_width < (unsigned int)pParameter->GetInt ("XPixel")){

pDevMode->dmPelsWidth = pParameter->GetInt ("XPixel");
pDevMode->dmPelsHeight = pParameter->GetInt ("YPixel");
long l = ChangeDisplaySettings(pDevMode, 0);


}
delete pDevMode;
}

}//if(!WA_INACTIVE
}
[/pre]

Any ideas ?



"I'm from the South Bronx, and I don't care what you say: those cows look dangerous."
U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
GeneralFile open dialog misery Pin
Rick Dangerous28-Oct-03 3:28
Rick Dangerous28-Oct-03 3:28 
GeneralCRichEditCtrl a WYSIWYG Control -- Don't Think So! Pin
Larry J. Siddens28-Oct-03 3:24
Larry J. Siddens28-Oct-03 3:24 
Generalunicode macro Pin
Anonymous28-Oct-03 3:16
Anonymous28-Oct-03 3:16 
GeneralRe: unicode macro Pin
Graham Bradshaw28-Oct-03 4:30
Graham Bradshaw28-Oct-03 4:30 
GeneralRe: unicode macro Pin
sagmam28-Oct-03 5:07
sagmam28-Oct-03 5:07 
QuestionHow to abort reading operation on blocking socket? Pin
kotbegemot28-Oct-03 2:56
kotbegemot28-Oct-03 2:56 
AnswerRe: How to abort reading operation on blocking socket? Pin
valikac28-Oct-03 5:48
valikac28-Oct-03 5:48 
GeneralRe: How to abort reading operation on blocking socket? Pin
SLiDeR28-Oct-03 6:46
SLiDeR28-Oct-03 6:46 
GeneralRe: How to abort reading operation on blocking socket? Pin
kotbegemot28-Oct-03 21:38
kotbegemot28-Oct-03 21:38 
GeneralRichEdit 4.1 Pin
sagmam28-Oct-03 2:26
sagmam28-Oct-03 2:26 
GeneralRe: RichEdit 4.1 Pin
David Crow28-Oct-03 8:45
David Crow28-Oct-03 8:45 
GeneralRe: RichEdit 4.1 Pin
sagmam28-Oct-03 21:46
sagmam28-Oct-03 21:46 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 2:21
David Crow29-Oct-03 2:21 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 2:27
sagmam29-Oct-03 2:27 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 2:40
David Crow29-Oct-03 2:40 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 2:56
sagmam29-Oct-03 2:56 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 3:14
David Crow29-Oct-03 3:14 

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.