Hi, can anyone pls explain 2 me what these public declarations are about? Wat values are being returned and why they are declared in such a way. thanks... int SetActivePage (int nPage); int SetActivePage (CMyPropDialog* pPage); CMyPropDialog *GetPage (int nPage); CMyPropDialog *GetActivePage (void);
fynox
Posts
-
Declarations help -
How do i transfer data to a property page?Erm...i'm nt too familiar with that...Could u elaborate? So do i need to specify where the message is sent to or where it is sent from etc? Thanks!
-
How do i transfer data to a property page?Hi, My prob is like this... 1) I have a CMain wh is the parent of several propertysheets, eg CPptySheet1. 2) After pressing a button on CMain, a modal dialog box pops up, CModal. 3) I change some values using CModal and i want the changes to be reflected in PptySheet1. 4) I cannot use OnInitDialog coz the ppty sheets are initialized b4 CModal. 5) I have also tried using OnSetActive...and even OnShowWindow.....but it doesnt work. How can i dynamically show changes, if there are any, every time the property sheet is shown? Please advise...thanks!
-
Difference btw MBCS and Unicode?I see, au2B is defined like this, #define au2B( STUFF ) auT(STUFF) #define au2B( STUFF ) (LPTSTR)((LPCTSTR)STUFF) but i'm still not sure what that means...and why there are 2 definitions... Thanks for ur help guys...
-
Need help wif toggling check boxHi, How do i toggle a checkbox? if lets say i want it to be FALSE initially...the moment i click on it...i want it to be TRUE, and so on...how do i do that?? Also, how do i get the state of the check box? Thanks 4 ur help!!
-
Difference btw MBCS and Unicode?Hi, I'm a little confused... Under MBCS the following code works... --------------------------------------------------------------------- main_doc->SelectByID(au2B(CEditUPara::UComp),au2B("COMPONENT"), 0, 0, 0, &retval); main_doc->ShowComponent2 ( ); ===================================================================== But under Unicode, i needed to do this for a particular part of the code... --------------------------------------------------------------------- CString type = "COMPONENT"; BSTR ucomp = CEditUPara::UComp.AllocSysString(); BSTR Type = type.AllocSysString(); main_doc->SelectByID(ucomp,Type, 0, 0, 0, &retval); main_doc->ShowComponent2 ( ); ===================================================================== The weird thing is that, --------------------------------------------------------------------- main_doc->IParameter(au2B(Diameter), &dim ); ===================================================================== still works in some other parts of the code...I can compile and run it successfully...Why is this so?? Thanks!
-
Help!Hi... I'm not sure why the error - 'OnSelchangeLUCOMPTop' : local function definitions are illegal, comes out...how shd i ammend this...thanks. void CComp::OnSelchangeLUCOMPTop() { UpdateData(TRUE); Tselection1 = "Selection Changed"; CMain::uc_top = m_uc_ts.GetCurSel(); m_uc_epo.EnableWindow(TRUE); m_uc_epp.EnableWindow(TRUE); }
-
Displaying DoublesHi, i have a question abt displaying doubles. Under _MBCS the following codes work but how do i display the double under Unicode? Thanks! char *buffer; int decimal, sign; buffer = _ecvt( m_Height, 5, &decimal, &sign ); AfxMessageBox(buffer); or int decimal, sign; AfxMessageBox(_ecvt(m_Height, 5, &decimal, &sign);
-
Help...win 98 to win XPHi, i'm a beginner to all this so pls forgive me if this is a silly qn...i hv a dll that works on win 98 but i recently migrated to win xp. I've changed the project settings to _Unicode but i'm not sure how to modify the code so that it works the same way on win xp. For eg. how do i use AfxMessageBox? Also, how do i use CFileDialog class? The code i hv is: CFileDialog filenewdlg(TRUE, NULL, NULL, OFN_ALLOWMULTISELECT |OFN_HIDEREADONLY, "Part Files(*.asm)|*.sldasm||", this); But on compiling, the error i get is cannot convert parameter 5 from 'char[29]' to 'const unsigned short' 1) How do i correct this? 2) Is there anything else i need to know? Best regards and thanks in advance...