|
Have a look at ITDigitDetectionEvent in MSDN or on the platform SDK.
Michael
Logic, my dear Zoe, merely enables one to be wrong with authority. - The Doctor
|
|
|
|
|
Hio.. I have 2 win98 machines that are having major toolbar problems.. I am using the following little function to switch out the toolbar:
void CMainFrame::SetToolbarDefault()
{
m_wndToolBar.SetButtons(NULL, 3);
m_wndToolBar.SetButtonInfo(0, ID_OPTIONS, TBBS_BUTTON|BTNS_SHOWTEXT, 0);
m_wndToolBar.SetButtonInfo(1, ID_APP_ABOUT, TBBS_BUTTON|BTNS_SHOWTEXT, 2);
m_wndToolBar.SetButtonInfo(2, ID_EXITBTN,TBBS_BUTTON|BTNS_SHOWTEXT, 3);
m_wndToolBar.SetButtonText(0,"Options");
m_wndToolBar.SetButtonText(1,"About");
m_wndToolBar.SetButtonText(2,"Exit");
m_wndToolBar.Invalidate(TRUE);
m_wndToolBar.UpdateWindow();
Invalidate(TRUE);
UpdateWindow();
} i have another function which is basicly the same which switches the toolbar to a different set of menus.. both have the following problem:
as soon as the SetToolbarDefault() gets called the menus become grey.. and they dont ever redraw.. if you move the window around, the area where the toolbar should be is all distorted, showing other things behind where the toolbar should be.. its like it never gets redrawn again, ever, until i exit the program and re-enter..
plz keep in mind that these buttons do have handlers, and they are not just greyed out as if they didnt have a message handler.. also these menus work fine under win 2000.. plz tell me someone has an idea on this one?
-dz
|
|
|
|
|
Hi, i want to let me richEdit control scroll to the very bottom whenever new text is added. Most examples here use LineScroll(1) to scroll down by 1 line whenever text is added but when your richedit has the style WS_HSCROLL turned off, then whenever the text is longer than the window width it'll need to scroll down more than one line...
I can't just do LineScroll(5) or anything like that either cause then it'll scroll down till the last line is at the top of the control, and thats not pretty either now is it..
Any ideas?
thanks.
P.S.: LineScroll doesn't even seem to work under WIN2000, i'd like to have something that works under WIN2000/WINXP as well
Kuniva
--------------------------------------------
|
|
|
|
|
I found this works:
// Give it focus
theApp.m_hwndPWOutputWindow->GetRichEditCtrl().StreamIn(SF_TEXT | SFF_SELECTION, es);
// Send some keys to cause it to move right to the bottom <-,->
theApp.m_hwndPWOutputWindow->SendMessage(WM_KEYDOWN,37,0);
theApp.m_hwndPWOutputWindow->SendMessage(WM_KEYDOWN,39,0);
if(!gbTalk)
{
theApp.m_hwndPWOutputWindow->SetFocus();
theApp.m_hwndPWOutputWindow->UpdateWindow();
}
theApp.m_hwndPWOutputWindow->UpdateWindow();
|
|
|
|
|
umm.. thanks for replying but i don't fully understand a few things here:
whats m_hwndPWOutputWindow?
whats es?
whats gbTalk for?
If you'd like to clear this up i'd be very thankful..
Kuniva
--------------------------------------------
|
|
|
|
|
i'm beginner
I search source code for display a jpeg in a dialog application with visual c++.
I have a list box with path file (c:\ttest.jpeg) and on click i search source code to show this image in a control 300*200 pixels.
Thanks a lot for your response.
please send me an email at noudard@wanadoo.Fr
nico
|
|
|
|
|
Your in luck a project of this type has receintly been submitted to code project. You can find it at http://www.codeproject.com/audio/cximagemng.asp. It is a bit much to go through but boy the things you can learn from this source.
|
|
|
|
|
if what I gave you in the first post is more than you were looking for try something a little simpler.
Like this
LVBKIMAGE lv;
ZeroMemory(&lv, sizeof(lv));
lv.ulFlags = LVBKIF_SOURCE_URL | LVBKIF_STYLE_NORMAL;
lv.pszImage = szFileName;
lv.cchImageMax = lstrlen(szFileName);
ListView_SetBkImage(hndLVCtrl, &lv);
|
|
|
|
|
2: Steven Szelei
You are right.
But what's wrong with my code, It seems be same as yours
It's me, code_cold
|
|
|
|
|
Could you told me what's wrong with my code ?
It's me, code_cold
|
|
|
|
|
I keep getting this message every time I double click an object to add code for it.
Any ideas on what may cause this or how I can fix it?
Thanks
|
|
|
|
|
are you trying to add a message handler, or a variable? (this is in the resource editor right?)
my guess is its caused by VS6 not being able to interpret your .cpp file..
Modified when adding variables:
void COptions1::DoDataExchange(CDataExchange* pDX)
{
CSAPrefsSubDlg::DoDataExchange(pDX);
DDX_Text(pDX, IDC_DATAPATH, m_strDataPath);
} Modified when adding message handlers:
BEGIN_MESSAGE_MAP(COptions1, CSAPrefsSubDlg)
ON_BN_CLICKED(IDC_BROWSEBTN, OnBrowsebtn)
END_MESSAGE_MAP()
if you took out or modified the AFX_MSG_MAP or AFX_DATA_MAP parts then VS6 wont be able to figure out where to put the code.. you can add it manually if you look at examples of how the class wizard has been doing it for you..
hope that is what you were looking for!
-dz
|
|
|
|
|
I want my MFC MDI CFormView based project to start up with the view (form)already populated with data (In my case I'll have pictures in a picture box)? Thank you,
ns
|
|
|
|
|
Sure can. Overload OnInitialUpdate().
|
|
|
|
|
Thanks! That did it.
|
|
|
|
|
here is what i am trying to do:
i am working in a splitter window in which on splitter has explorer window as i enter url of a site it loads its main page and now here i want a system to check whole site to search for working links and links that are not working or dead and after detecting alive and dead links of the site it should show the links information in tree view in on of the splitter pane .i want source code for this problem .please help me to solve this problem(using vc++6).
waseem qureshi email:waseem_1111@yahoo.com
qureshi's request
|
|
|
|
|
Have you tried http:///www.kissmyass.com ??? Your more likely to find ALL that source code there.
|
|
|
|
|
I have a class that I just deleted a couple of buttons from and then all a sudden the class disappears from the class view.
The class still compiles and everything works as if nothing is wrong....just can't access it from the class view.
I tried cleaning the project and deleting the .clw file...nada
Any idea on how to get it back?
Thanks for any help
|
|
|
|
|
When this happens, I go to the file view, open the class's header file, and make a temporary change, to force the file's "modified" flag to be set. Remove the change and hit "Save". The Class magically appears in Class view!
|
|
|
|
|
Thanks Ron that worked great!
|
|
|
|
|
Heres what I am trying to do:
I create two different documents in an MDI project. Its a CFormView based project and each view is to be associated with a different dialog resource. On the fly I want view1 to spawn view 2 (or make it topmost if it already exists). Ideally I want the app to start with both documents (and associated views) created, but the hidden one comes to the top when the top one tells it to. Then the user calls a dll which returns some info. I want to give this info to view1(or document1), and bring view1 to the top again, hiding view2.
CAn this be done? What do I need to do? ANy pointers (haha) would be greatly appreciated. Also, my first view apwans a login dialog (modal) which is to return the password successful info to view 1 so that certain menu items get enabled in view1. What do I do here to pass this information?
Thank you very much,
ns
|
|
|
|
|
I meant "spawns" not apwans...
|
|
|
|
|
sir
i want a program to search whole of the website(any) and check all the links whether those are working or not in visual c++6.
please help me, thanks
waseem ahmed
email: waseemahmed@pakistanmail.com
|
|
|
|
|
See the 5th example in my Web Resource Provider article.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi folks,
Does anyone know of any free source, components, or libraries that can open a TIFF file format and convert it to a bitmapped image. While I am at it, does anyone know of free source, components, or libraries that implement the Floyd-Stienberg dithering algorithm for halftoning. I have tried some stuff I found on the web and most of my test cases can not be opened by the code I have found.
Thanks for any help!!!
|
|
|
|