Click here to Skip to main content
15,905,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralDownloading and booting WinCE on a LapTop Pin
Gert Boddaert31-Jan-02 23:14
Gert Boddaert31-Jan-02 23:14 
GeneralRe: Downloading and booting WinCE on a LapTop Pin
Gert Boddaert1-Feb-02 5:45
Gert Boddaert1-Feb-02 5:45 
GeneralpItem->CreateNewItem(clsid); and Ms Word Pin
Braulio Dez31-Jan-02 23:09
Braulio Dez31-Jan-02 23:09 
QuestionOLE automation how does it work??? Pin
Gérald Mercet31-Jan-02 22:18
Gérald Mercet31-Jan-02 22:18 
AnswerRe: OLE automation how does it work??? Pin
Braulio Dez31-Jan-02 23:19
Braulio Dez31-Jan-02 23:19 
GeneralCArchive and CompoundFile Pin
wangyiming31-Jan-02 22:04
wangyiming31-Jan-02 22:04 
GeneralRe: CArchive and CompoundFile Pin
wangyiming1-Feb-02 15:11
wangyiming1-Feb-02 15:11 
Generaltrouble Pin
31-Jan-02 21:31
suss31-Jan-02 21:31 
is there anybody who ever get this trouble ?

look:
(if u want to see the question directly ,or
save ur time plz go to the end of the thread!)

i create 2 dialogbars in my SDI app. each dialogbar
has a class (i.e. CMyDialogBar1,CMyDialogBar2) ,
and i add 10 buttons in both of the 2 dialogbars.

firstly, i implement one of them.(segment of mainfrm.cpp)

"mainfrm.h"
//////////////////
CMyDialogbar1 m_b1;
CMyDialogbar2 m_b2;
//////////////////

"mainfrm.cpp"
//////////////////
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (!m_b1.Create(......))
{
......
}

if (!m_b2.Create(......))
{
......
}

}
//////////////////

**** 0 error after press F7 ! and the 2 dialogbars are all right!

secondly, in "CMyDialogBar1.cpp" ,i init all button in dialogbar1
like this:

//////////////////
BOOL CMyDialogBar1::InitButtons()
{
int i;

for(i=0; i<button_number; i++)
="" {
="" m_btn[i].mydrawbuttonfacefunction(i);
="" m_btn[]="" is="" a="" instance="" of="" cmybutton="" class=""
="" deriving="" from="" cbutton="" class,but="" cmybutton
="" can="" change="" the="" color="" button
="" m_btn[i].subclassdlgitem(idc_bar1_btn1+i,="" this);
="" }
="" return="" true;
}
=""
all="" these="" buttons="" in="" cmydialogbar1="" are="" set="" to="" ownerdraw="" style="" ,="" and="" i=""
make="" drawitem()="" function=""

****="" 0="" error="" after="" press="" f7="" dialogbar1="" got
="" different="" each

now,="" am="" going="" implement="" button="" on="" second="" dialogbar.
="" then="" trouble="" comes="" out.

i="" add="" such="" message="" handle="" "mainfrm.cpp"
i="" place="" code=""
in="" "mainfrm.cpp"="" ,(here="" segment)
=""
begin_message_map(cmainframe,="" cframewnd)
="" on_command_ex_range(idc_bar2_btn1,idc_bar2_btn10,onbar2lbtn)
end_message_map()
=""

in="" &#8220;mainfrm.h&#8221;
="" {{afx_msg(cmainframe)
="" afx_msg="" void="" onbar2btn(uint="" btnid);
="" }}afx_msg
=""

all="" implemented="" ,but="" some="" we="" create="" first="" disabled="" !="" why="" ??
when="" remove="" implementing="" dialogbar(dialogbar2),="" 1st="" dialogbar(dialogbar1)="" enabled.="" cant="" figure="" out="" what="" worng.="" maybe="" make="" mistakes="" using="">=2 dialogbars in a program in one time.but some of the buttons in dialogbar2 are still work. only a part of them are disabled ! why ?

can anybody tell me why? thanks in advance!
of if u have some code of using >=2 dialogbars in a program,
can u email me ?

eMial: litterjosser@hotmail.com


nickong

let's talk about code or some funny video
GeneralRe: trouble Pin
Johan Rosengren22-Jun-04 8:42
Johan Rosengren22-Jun-04 8:42 
Questiondoes Windows registry record the bootup and shutdown time? Pin
DengJW31-Jan-02 21:01
DengJW31-Jan-02 21:01 
GeneralSTL - Newbie... Pin
Bernhard31-Jan-02 20:34
Bernhard31-Jan-02 20:34 
GeneralRe: STL - Newbie... Pin
Joaquín M López Muñoz31-Jan-02 23:41
Joaquín M López Muñoz31-Jan-02 23:41 
GeneralRe: STL - Newbie... Pin
Bernhard31-Jan-02 23:51
Bernhard31-Jan-02 23:51 
GeneralSorry i was in a hurry... Pin
Bernhard31-Jan-02 23:53
Bernhard31-Jan-02 23:53 
GeneralRe: STL - Newbie... Pin
Joaquín M López Muñoz1-Feb-02 3:15
Joaquín M López Muñoz1-Feb-02 3:15 
Generalimport a .DXF file Pin
Gayan31-Jan-02 20:31
Gayan31-Jan-02 20:31 
GeneralRe: import a .DXF file Pin
Jon Hulatt31-Jan-02 23:00
Jon Hulatt31-Jan-02 23:00 
GeneralRe: import a .DXF file Pin
Roger Allen1-Feb-02 3:30
Roger Allen1-Feb-02 3:30 
GeneralOO Design question Pin
Jerome Conus31-Jan-02 19:48
Jerome Conus31-Jan-02 19:48 
GeneralRe: OO Design question Pin
Paul M Watt31-Jan-02 20:11
mentorPaul M Watt31-Jan-02 20:11 
GeneralRe: OO Design question Pin
Bernhard31-Jan-02 20:14
Bernhard31-Jan-02 20:14 
GeneralRe: OO Design question Pin
Joaquín M López Muñoz31-Jan-02 20:20
Joaquín M López Muñoz31-Jan-02 20:20 
GeneralAbout "https://" Pin
wabc31-Jan-02 19:28
wabc31-Jan-02 19:28 
GeneralRe: About "https://" Pin
Kastellanos Nikos1-Feb-02 2:07
Kastellanos Nikos1-Feb-02 2:07 
GeneralRe: About "https://" Pin
lucy1-Feb-02 3:32
lucy1-Feb-02 3:32 

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.