|
awesome
thanks for the info
i wondered why my release build wasnt dying at the very least
"... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away" 8028finder.com
|
|
|
|
|
Hi
I have created a SDI application ( with COM server option ) using the new appwizard supplied with the WTL 7.0 toolkit. After adding a ATL simple object, I tried to access the interface from VB 6 to no avail?? Has anyone played around with these options?
The code generated by VS registers the object on the ROT, but using ye old ROT/COM viewer, I cannot see my object registered on the ROT when an instance of my SDI application is running. Any ideas?
Frans
|
|
|
|
|
Hi,
I want to change the Dialog size of a CFormView, ( make it varable ).
Also I want to position the Dialog( CFormView ) at a
particular postion , when the Dialog( CFormView ) size is
greater than the MainFrame
Also the Mainframes size is kept constant.
Can someone please suggest towards this.
Thanks,
Sanksy
|
|
|
|
|
sanskypotov wrote:
God is Good, all the Time.
All the Time, God is Good.
no offence meant but...
is this some kind of trick question?
"... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away" 8028finder.com
|
|
|
|
|
No Sir,
I hope that I have made it more precise and clear.
Thanks,
Sansky
John 3:16
For God so loved the world,
that he gave his only begotten Son ( Jesus Christ ) ,
that whosoever believeth in him should not perish, but have everlasting life.
|
|
|
|
|
errrrr ... thanks for clearing that up
"... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away" 8028finder.com
|
|
|
|
|
My customer in China is having problems with running my program on his computer. He is using Win NT Chinese version, and his symptoms is that the mouse and keyboard does not work.
Below I attached the question from China:
Could you help the Qinghuangdao customer to use their 3710 software? They can't use it as usual. I mean the software always stop the screen, The people find it because they can't use the mouse and key to control the computer. They run the 3710 in Win NT 4.0 Chinese version.
Can anyone tell me if there could be problems when running MFC programs on this version?
Thanks for helping me out
Einar
|
|
|
|
|
My Windows2K is Chinese version, and I code MFC applications.
Never have such problem... And never happened on my ex-operating systems (WinNT4, Win95, Win98).
And what's 3710 software? I personally think that's because the 3710 software hang ( or crashed ) so the screen got freezed...
Maxwell Chen
People say "No news is good news". Then, no code is good code!?
|
|
|
|
|
Maxwell Chen wrote:
And what's 3710 software?
it looks like some mainframe terminal emulator from its name
"... and so i said to him ... if it can't dance and you can't eat it either f**k it or throw it away" 8028finder.com
|
|
|
|
|
I know from personal experience that you can run English (or Chinese, of course...) MFC applications on a Chinese machine. The fonts are different, but otherwise it's likely something else going on.
Do you have a Debug version of the app that you could run on the Chinese system? Perhaps something that can create a log of all its actions? At least then you might be able to see what the problem is.
No generalization is 100% true.
Not even this one.
|
|
|
|
|
How to open a col-file on the necessary topic???
|
|
|
|
|
I have explorer like application (CTreeView at Left and CListView at right). I also have function in CListView whith select element in CListCtrl by it number.
SelectDocument(int i)
{
GetListCtrl().SetItemState( j,LVIS_SELECTED|LVIS_FOCUSED,LVIS_SELECTED|LVIS_FOCUSED );
}
When I trying I call this function from CListView all work fine, but if I call it from another class it do nothing.
Pleese tell me what is wrong and what should I do.
|
|
|
|
|
I have a drawing application and am trying to implement a print scaling feature much like Excel's "page setup" so the resulting print-out can be scaled accordingly.
For example, I have tried the below code to print a bar graph, but see no effect on neither the print-out nor the print preview result.
What am I doing wrong? Any help would be greatly appreciated.
OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
HDC temphd = CreateCompatibleDC( pDC->m_hDC );
StretchBlt( pDC->m_hDC, 0, 0, 32, 32, temphd, 0, 0, 100, 100, SRCCOPY );
DeleteDC( temphd );
}
Best regards,
tak shichiku
|
|
|
|
|
I have scaled stuff 3 different ways:
1.) Acually recalculate the sizes of rects and other objects before display or printing them.
2.) Draw to a memory DC and StretchBlt to the display or printer. (This looks like what your where hoping to do.)
3.) Use the windows mapping functions.
Option 1 works if everything you are displaying can be put in rectangles. You have to multiply all the coordinates by a scale factor before displaying them.
Option 2 works, but you are stretching a bitmap so you get poor results if stretching too big or too small. To make this work you have to; create a memory DC, create a Bitmap, select the Bitmap into the memory DC, draw on the memory DC, then StretchBlt or BitBlt to the display DC or printer DC.
Option 3 works well also. You have to use the CDC::SetMapMode, CDC::SetWindowExt, and CDC::SetViewportExt methods. I can't tell you how to use these because you have to understand the WindowExtent and Viewport consecpts. But this information can be fould in the MSDN. This may be your best bet, because you can get scaling without changing all your drawing code.
Hope this helps...
Jonathan Craig
www.mcw-tech.com
|
|
|
|
|
Hi,
I have a handle to a bitmap(not a resource bitmap) file and can display it in my app window. Now I need to search all pixel RGB values if necessary change them with another RGB value and display it again.
I know a BITMAP structure have bmBits pointer but do not know how to use it.
karanba
|
|
|
|
|
I don't believe the bmBits is valid if it's not a DIBSection, but depending on the bit depth, they are stored as BGR, BGRA, or 5 bits each of BGR plus one bit for padding. They are stored in rows that are a multiple of 4.
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
what is DIBSection, I hear much about?
karanba
|
|
|
|
|
basically, a DIBSection is a DIB that can act like an HBITMAP. you can get at the pixel data as you do in a DIB, but you can use it in functions liek BitBlt, like an HBITMAP.
-c
There ain't no second chance
Against the thing with the forty eyes, girl
|
|
|
|
|
Hi,
In my application, I have some classes which
also use some MFC classes.
what effect would it make if i Convert those Classes to
ATL objects.
I am new to ATL, so please excuse me if there is some
technical glitch..
Please help
Sameer
|
|
|
|
|
By convert do you mean to remove the MFC parts, or do you use MFC with ATL ( which is evil ) ?
Christian
The tragedy of cyberspace - that so much can travel so far, and yet mean so little.
And you don't spend much time with the opposite sex working day and night, unless the pizza delivery person happens to be young, cute, single and female. I can assure you, I've consumed more than a programmer's allotment of pizza, and these conditions have never aligned. - Christopher Duncan - 18/04/2002
|
|
|
|
|
Actually it is MFC + ATL.. some components of ATL..
But how can i convert my full project to ATL.. and also
can i handle OnTimer() an d messages in ATL..
Please suggest me some sites also..
Thanx
Sameer
|
|
|
|
|
I am trying to add/modify the columns and rows of ClistCtrl, when i compile the code there are no errors but when i run the program its giving some error message 'Illeagal Operation'..
My code is as follows:
for(int c=0; c< nColumnCount; c++)
m_lc.DeleteColumn(0);
//here m_cols is the integer value entered by the user
//and m_rows is also an integer value entered by the user
//m_lc is the ListControl variable
if(m_cols > 0)
{
LV_COLUMN lvcol;
lvcol.mask = LVCF_FMT | LVCF_TEXT | LVCF_WIDTH | LVCF_SUBITEM;
lvcol.fmt = LVCFMT_LEFT;
lvcol.cx = 80;
CString s;
for(int c=0; c<m_cols; c++)
{
s.Format("Coloum %d",c+1);
lvcol.pszText = (LPSTR)(const char *)s;
lvcol.iSubItem = c;
m_lc.InsertColumn( c, &lvcol );
}
}
The above code i used to delete the existing columns and add new columns which is working fine
but when I tried to add the rows i am getting the error message.
The following is the code i wrote to add the row data
CString s;
for( int i = 0; i < m_rows; i++)
{
LV_ITEM lvitem;
lvitem.mask = LVIF_TEXT | LVIF_PARAM;
lvitem.lParam = 0;
lvitem.iItem = 0;
s.Format( "subitem %d", 0);
lvitem.pszText = (LPSTR)(const char *)s;
lvitem.iSubItem = 0;
int r = m_lc.InsertItem( &lvitem );
for(int c = 1; c < nColumnCount; c++)
{
s.Format( "subitem %d", c);
BOOL b = m_lc.SetItemText( 0, c, (LPTSTR)(const char *)s);
}
}
Can Any one Help me in doing the above??
Thank you.
|
|
|
|
|
If I add buttons while application initialization CToolBar will resize well. But if i do it in the midle of my program there is no CToolBar resizing (but buttons i can see new buttons). If I minimize and then maximiza application, then CtoolBar size will be recalculating an all OK.
Please help me. I was trying to use different pToolBarCtrl->Invalidate and pToolBarCtrl->AutoSize(), but there is no any changes.
|
|
|
|
|
Call the RecalcLayout() method on the parent frame.
--------
I don't think that I'm a sell-out but I do "Enjoy Coke!"... -- Bloodhound Gang, The Inevitable Return Of The Great White Dope
|
|
|
|
|