Welcome![Sign In][Sign Up]
Location:
Search - code manager

Search list

[Other resourceCode.Craft_The.Practice.of.Writing.Excellent.Code.

Description: 一本很好的介绍软件规范的书,涵盖了从结构设计,编程格式,开发过程 和管理方法等所有主题。是一本junior,intermediate programmer and manager必读之书。
Platform: | Size: 2319522 | Author: doujiange | Hits:

[Otherfile manager

Description: 资源管理器的源代码-resources management of source code
Platform: | Size: 218728 | Author: wxz | Hits:

[OS programsourcenav-512

Description: 功能强大的源代码管理器,和source-insight齐名,但速度更快,是阅读学习代码的必备工具,特别是大工程更是不可缺少.完整source code,支持windows/Linux.-powerful source code manager, and the source-insight famous, but faster and is learning to read the code necessary tools, especially large projects is indispensable. Complete source code, support for Windows / Linux.
Platform: | Size: 6182768 | Author: 老五 | Hits:

[GUI Developbrew window manager

Description:

 

Objective
This topic describes how to create a windowed application that will share the display with other applications.
Brew® MP windowed applications need to be written differently than traditional Brew MP applications. Traditional Brew MP applications, when running in the foreground, occupy full screen space and can modify the display at any time. In the windowing framework, multiple applications share the display at the same time and are not allowed to modify the display arbitrarily. A windowed application also needs to create one or more widgets to be used to create the windows.
A windowed application needs to:
·                  Create and initialize one or more widgets to be passed to IWindowMgr_CreateWindow().
The application can implement its own IWidget, or it can make use of an existing IWidget.
·                  Handle the EVT_APP_START_WINDOW event (and create a window).
·                  Implement handlers for visibility changes, focus changes, and extent changes. The implementation of these handlers is dependent on the details of the application.
·                  Draw in two stages:
·                                  Tell the container that drawing is necessary (ICONTAINER_Invalidate()).
·                                  Draw only when told to draw by the container (IWIDGET_Draw()).
Note: A windowed application should not call any functions that modify IDisplay directly. This includes explicit IDisplay function calls or implicit updates, such as calls to IIMAGE_Draw() or ICONTROL_Redraw(). Drawing should happen only on demand, for example, when IWIDGET_Draw() is called for the widget used to create the window. Existing Widget based applications follow these guidelines and, with minor modifications, can be ported to the windowing framework.
Event handling
A windowed application must respond to these events:
EVT_APP_START_WINDOW and EVT_APP_START
A window-based application receives EVT_APP_START_WINDOW first. If the application returns TRUE for this event, the application does not receive EVT_APP_START. If an application needs to support both the environments (window based and non-window based), it should handle both events.
When the application receives EVT_APP_START_WINDOW, it should create one or more windows.
If creation of IWindowMgr0 fails while handling EVT_APP_START_WINDOW, the application should assume that the platform does not support window-based applications. In this case, the application should return FALSE and continue the application logic in the code for EVT_APP_START.
EVT_APP_SUSPEND and EVT_APP_RESUME
After an application returns TRUE for EVT_APP_START_WINDOW, it will not receive EVT_APP_SUSPEND and EVT_APP_RESUME as non-windowed Brew MP applications do. Instead, the application must check for window status events that are sent to the widget through EVT_WDG_SETPROPERTY events. For EVT_WDG_SETPROPERTY events, wParam indicates which property was set, and dwParam specifies the value of the property. When the AEEWindowMgrExt_PROPEX_STATE property has a value of AEEWindowMgrExt_STATE_VISIBLE, the window is visible.
EVT_WDG_WINDOWSTATUS
The EVT_WDG_WINDOWSTATUS event is sent to a widget to notify it about various window related status messages. AEEWindowStatus.h contains information on the meaning of various status messages.
Sample code location

ZIP filename
Location
Run app
hellowindowapp
Brew MP Library
·                       Download and extract the ZIP file.
·                       Compile the app.
·                       Run it on the Brew MP Simulator.

Example of a windowed application
In the hellowindowapp sample, HelloWindowApp_HandleEvent handles the EVT_APP_START_WINDOW event and creates soft key and pop-up windows:
   case EVT_APP_START_WINDOW:   
      DBGPRINTF("EVT_APP_START_WINDOW");
 
      // Create the softkey and popup windows
      HelloWindowApp_CreateSoftkey(pMe);
      HelloWindowApp_CreateOrActivatePopup(pMe);
 
      // Handling this event tells Brew that we are a windowing
      // application.
      return TRUE;  
HelloWindowApp_CreateSoftkey() creates the soft key widget, sets the color text of the widget, then calls HelloWindowApp_CreateWindow() to create the window.
   WidgetWindow *pWindow = &pMe->softkeyWindow;
  
   if (pWindow->piWindowWidget != NULL) return;
   pWindow->pszDbgName = "Softkey";
   pWindow->pMe = pMe;
  
   (void) ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_SoftkeyWidget,
            (void **) &pWindow->piWindowWidget);
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WidgetExtent extent = {0, HWA_SOFTKEY_HEIGHT};
      IWidget_SetExtent(pWindow->piWindowWidget, &extent);
   }
  
   (void) IWidget_SetBGColor(pWindow->piWindowWidget, MAKE_RGBA(200,200,200,255));
  
   // Now set the softkeys text
   {
      IWidget *piTextWidget = NULL;
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY1, &piTextWidget);
     
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Hover", TRUE);
      }
      RELEASEIF(piTextWidget);
 
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY2, &piTextWidget);
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Close", TRUE);
      }
      RELEASEIF(piTextWidget);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Softkey);  
HelloWindowApp_CreateWindow() creates the soft key window, as follows:
   int result;
   uint32 winId;
   AEEWindowProp propList[1];
  
   // Set custom window handler
   HANDLERDESC_Init(&pWindow->hdHandler, HelloWindowApp_WindowHandler, pWindow, NULL);
   IWIDGET_SetHandler(pWindow->piWindowWidget, &pWindow->hdHandler);
        
   propList[0].id = AEEWindowMgrExtProp_CLASS;
   propList[0].pbyLen = sizeof(winClass);
   propList[0].pby = (void *) &winClass;
     
   result = IWindowMgr_CreateWindow(pMe->piWindowMgr, (IQI*) (void *) pWindow->piWindowWidget,
      propList, ARR_SIZE(propList), &winId);
 
   if (result != SUCCESS) {
      DBGPRINTF("Window creation failed for %s: %d", pWindow->pszDbgName, result);
      HelloWindowApp_DestroyWindow(pWindow);
   } else {
      DBGPRINTF("Window %s created: id=%d", pWindow->pszDbgName, winId);
   }
HelloWindowApp_CreateOrActivatePopup() creates the widget for the pop-up window, then calls HelloWindowApp_CreateWindow() to create the pop-up window.
   pWindow->piWindowWidget = HelloWindowApp_CreateAndInitImageWidget(
                                pMe,
                                "popups.main" // Image as defined in appinfo.ini
                             );
 
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WExtent extent = {HWA_POPUP_WIDTH, HWA_POPUP_HEIGHT};
      IWIDGET_SetExtent(pWindow->piWindowWidget, &extent);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Popup);
Related information
·                  See Brew MP Widgets Technology Guide: Creating a Widgets application
·                  See Brew MP API Reference

Base version:
Brew MP 1.0
Tested version:
Brew MP 1.0
Phone tested:
No

 

Platform: | Size: 439828 | Author: bluecrest | Hits:

[File Operate文件管理器

Description: Own very good file manager with source code (fow Windows)
Platform: | Size: 143930 | Author: evgeniyico@ya.ru | Hits:

[WEB Codefilemanager

Description: php源码,文件管理-php source code, document management
Platform: | Size: 76800 | Author: 水中鱼 | Hits:

[Otherfile manager

Description: 资源管理器的源代码-resources management of source code
Platform: | Size: 218112 | Author: wxz | Hits:

[OS programsourcenav-512

Description: 功能强大的源代码管理器,和source-insight齐名,但速度更快,是阅读学习代码的必备工具,特别是大工程更是不可缺少.完整source code,支持windows/Linux.-powerful source code manager, and the source-insight famous, but faster and is learning to read the code necessary tools, especially large projects is indispensable. Complete source code, support for Windows/Linux.
Platform: | Size: 6182912 | Author: 老五 | Hits:

[Windows Developvbexplorer

Description: 这是用VB6写的资源管理器代码,可以用来参考,运行很顺畅-This is written in VB6 Resource Manager code can be used for reference, running very smoothly
Platform: | Size: 230400 | Author: 阿光 | Hits:

[SNMPSNMP协议_project

Description: SNMP示例代码,包括SNMP会晤层、请求消息、Agent、Trap、以及管理、异常等类-SNMP example code ,include SNMP meet layer,message request,Agent,Trap ,management ,exceptions ,and so on.
Platform: | Size: 220160 | Author: 何乐 | Hits:

[Windows Developtaskmanager

Description: 这是一个从网上获取的任务管理器的VC++源代码,但在调试过程中,老通不过,有意意的高手,请看一看.-Internet access from the Task Manager VC source code, but the debugging process, the old Yet, the Italian master interested, please take a look.
Platform: | Size: 56320 | Author: sjh | Hits:

[Technology Managementcodemanager

Description: 一个源代码管理工具,支持悬浮框拖曳,后台数据库管理,代码高亮显示灯功能-a source code management tool to support suspension frame dragging, background database management, code highlighter function lights
Platform: | Size: 574464 | Author: 刘海 | Hits:

[Driver DevelopUnInstallDev

Description: 驱动的安装和卸载, 和设备管理器起一样的功能!不过设备名字在代码里!请仔细看代码-Install and uninstall the drivers, and Device Manager from the same function! However, equipment in the code where the name! Please carefully read the code
Platform: | Size: 30720 | Author: liuqiuwei | Hits:

[Dialog_WindowManager-windows

Description: 在.net 环境下用C#编码的客户窗口源代码。可以在安装了〉net开发平台的机子上直接运行。 -In. Net environment using C# Coding customers the source code window. Can be installed> net development platform directly on the machine running.
Platform: | Size: 859136 | Author: 应用 | Hits:

[SNMPmanager

Description: c++ 实现snmp编程,客户端代码manager-c++ achieve snmp programming, client code manager
Platform: | Size: 1442816 | Author: hao | Hits:

[File Operatefilemanager

Description: 一个完整实现的资源管理器的源代码。是学习windows文件操作和VB listview控件的理想代码。-The realization of a complete resource manager s source code. Windows files learn VB listview control operation and the ideal code.
Platform: | Size: 197632 | Author: mypdamovie | Hits:

[source in ebookManager

Description: vc座的资源管理器源代码,vc初学者不放看看.-Block vc Explorer source code, vc beginners go to see.
Platform: | Size: 390144 | Author: dgdfg | Hits:

[EditorCode

Description: 这是一个功能简单的代码管理器,用Visual basic .net 2005编写.-This is a simple function of the code manager, using Visual basic. Net 2005 to prepare.
Platform: | Size: 455680 | Author: 攀峰 | Hits:

[Windows DevelopManager.module.design.classic.VB.code

Description: VB管理器模块设计经典代码Manager module design classic VB code -Manager module design classic VB code
Platform: | Size: 31744 | Author: t | Hits:

[OS programcode

Description: 这是一个代码管理器,做了好长时间了,一边复习考研一边做,速度真的有点慢,呵.后台数据库采用了access,由于时间的原因,程序有很多细节还没处理.(注意:软件默认只支持vc6.0的文件类型,要导入其他类型文件,需设置文件类型)-This is a code manager, made a good long time, while review Kaoyan while doing the speed is really a bit slow, Oh. Back-end database using access, due to time reasons, the program has not handled a lot of details (Note: vc6.0 software only supports the default file type to import other types of files, set file type)
Platform: | Size: 5897216 | Author: 沈一枫 | Hits:
« 12 3 4 5 6 7 8 9 10 ... 50 »

CodeBus www.codebus.net