|
gm_coll wrote:
Thanks for your help,
No problem, though you find it on your own
Mustafa Demirhan
http://www.macroangel.com
Sonork ID 100.9935:zoltrix
<nobr>They say I'm lazy but it takes all my time
|
|
|
|
|
I have a call that is to popup a dialog window but that dialog window doesn't popup until after another one that is popped up is cancelled. The extra or other dialog is one that I use in a setfocus operation in the new dialog. I have tried setting the focus to another control using the following in initdialog:
CEdit* pNextField = (CEdit*)GetDlgItem(IDC_MF_DEADSPACE);
pNextField->SetFocus();
But this other window always comes up.
What am I doing wrong? How can I just have the dialog popup without it doing anything else?
Thanks!!!!!!!!
|
|
|
|
|
Are you returning FALSE from OnInitDialog?
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
I was returning TRUE changed it to false and now it seems to work. WHY!?
|
|
|
|
|
Check the WM_INITDIALOG docs - or - read MFC comments
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
hi
i'm desperately searching for code to concatenate wave files, something like A.wav + B.wav = C.wav
anybody??
|
|
|
|
|
I have no experience working with sound data type. My first thought is to load the two sound files into memory and then concatenate them. If they are big files, you can use other works memory technique such as memory mapping to concatenate the files.
Kuphryn
|
|
|
|
|
Have a look at mmioXXX functions - they support RIFF files and .wav format is implemented as RIFF.
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
MS DirectX SDK.
And I swallow a small raisin.
|
|
|
|
|
thanks, i really appreciate the trouble, but could you just be a bit more specific?
|
|
|
|
|
I am creating my ActiveX control, this control has a child window of base CEdit, whenever I try to change to a font with size larger than the window created, the window size is changed. What can I do to make the window (edit) size fixed in spite of the font’s size?
I am using the following to create the edit window and to set the font text:
DWORD dwEditStyle = WS_CHILD|WS_VISIBLE|ES_AUTOHSCROLL;
DWORD dwExEditStyle = 0;
m_pEdit = new CEdit;
VERIFY(m_pEdit->CreateEx(dwExEditStyle, "Edit", "", dwEditStyle, crcRect, this, ID_ EDIT));
m_pEdit->SetFont(CFont::FromHandle(hNewFont));
m_pEdit->SetWindowText(“Hello”);
|
|
|
|
|
I'm not sure if you can, because all MFC dialogs are measured in units relating to the font size (so that the controls in your dialog will always fit no matter what the user sets their font size to).
I you need to keep changing the font size, then do a resize of the CWnd afterwards to scale it back to the size it was originally
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Seems that you are right, I didn’t find any way not to change the size of the window, even it didn’t trigger WM_SIZE message
|
|
|
|
|
Does any one know how to display a status bar in a status window panel? I was able to get so far as to instantiate a CProgressCtrl object. Now I need to show it on the panel. Thx,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
Check KB article Q142202.
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
|
I want my application to access the printer
and print a string. I dont want to use any
print dialogs. Is this possible?
|
|
|
|
|
Yes it is. Take a look at these articles for reference:
printing without docview[^]
Print Long Text[^]
Printing Tricks And Tips[^]
All of these may have relevant help for you.
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
Hi,
I have a CMYK TIF file with LZW compression.
When I convert it to RGB DIB and use StretchDIBits function I can draw the file on the screen or on the printer, but converssion is not good and the quality of the picture is not good.
Does somebody knows how to send the CMYK TIF file to the printer without converting to RGB DIB. They told me to try Escape sequence to directly inject Postscript code to printer driver but I'm not familiar with this method.
Thanks in advance.
Trifon Alekov
|
|
|
|
|
|
Hi All,
Does anyone have any advise about the best way to go about displaying line numbers in a CRichEditView that display correctly while scrolling? Looking for the effect in many IDEs, and editors like Homesite. Thanks for any suggestions.
Rick Gavin
|
|
|
|
|
|
I've inherited my control from CListCtrl and overriden OnCustomDraw.
And in OnCustomDraw method i do my own drawing only at CDDS_ITEMPOSTPAINT|CDDS_SUBITEM stage. At other stages before this one CDRF_SKIPDEFAULT flag is UNset (i want standart CListCtrl to draw header).
Now, with every drawing of my control it flickers.
I tried to use double buffering (draw in memory DC and than BitBlt to original), but there was just black screen.
Does anyone know what's the problem? And how can i avoid flickering?
Thanks in advance.
|
|
|
|
|
With CDDS_POSTPAINT you're getting the chance to draw *after* item/subitem was painted. What kind of information are you displaying?
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
I'm drawing images and text.
the problem, why i cant use standart list, is that i have to draw multiple selection in my own way.
e.g. selected images should be drawn like another image etc.
its not my idea, so did customer want
nobody is perfect
|
|
|
|